From 6dce6de696bacdd69605731e5e0cc4c910df2e94 Mon Sep 17 00:00:00 2001 From: Timothy Allen Date: Tue, 14 Aug 2018 11:24:15 +0200 Subject: [PATCH] Add logging. --- load_spreadsheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/load_spreadsheet.py b/load_spreadsheet.py index 146294c..0259641 100755 --- a/load_spreadsheet.py +++ b/load_spreadsheet.py @@ -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")