Add logging.
This commit is contained in:
parent
688c2d1374
commit
6dce6de696
@ -259,7 +259,7 @@ def load_into_db(rows, event=None):
|
||||
) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
'''
|
||||
if rows is None or len(rows) < 1:
|
||||
log.warning("**** No data found in spreadsheet ****")
|
||||
log.warning("**** No data found in spreadsheet {} ****".format(event))
|
||||
else:
|
||||
db = MySQLdb.connect(user='aac', passwd='saOAcCWHg4LaoSSA', db='AAC',
|
||||
use_unicode=True, charset="utf8")
|
||||
|
Loading…
Reference in New Issue
Block a user