Add logging.

This commit is contained in:
Timothy Allen 2018-08-14 11:24:15 +02:00
parent 688c2d1374
commit 6dce6de696

View File

@ -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")