diff options
Diffstat (limited to 'jfr_playoff')
-rw-r--r-- | jfr_playoff/data/__init__.py | 5 | ||||
-rw-r--r-- | jfr_playoff/db.py | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/jfr_playoff/data/__init__.py b/jfr_playoff/data/__init__.py index 8c94466..3e63e98 100644 --- a/jfr_playoff/data/__init__.py +++ b/jfr_playoff/data/__init__.py @@ -74,7 +74,10 @@ class PlayoffData(object): self.match_info = {} for phase in self.phases: for match in phase['matches']: - match_info = MatchInfo(match, self.teams, self.database, self.aliases) + PlayoffLogger.get('data').info( + 'getting match info for #%d', match['id']) + match_info = MatchInfo( + match, self.teams, self.database, self.aliases) if 'link' in phase: match_info.set_phase_link(phase['link']) self.match_info[match['id']] = match_info.get_info() diff --git a/jfr_playoff/db.py b/jfr_playoff/db.py index bca05d2..b85c5a4 100644 --- a/jfr_playoff/db.py +++ b/jfr_playoff/db.py @@ -24,7 +24,8 @@ class PlayoffDB(object): return self.db_cursor def __execute_query(self, db_name, sql, params): - PlayoffLogger.get('db').info('query (%s): %s %s', db_name, sql.replace('\n', ' '), params) + PlayoffLogger.get('db').info( + 'query (%s): %s %s', db_name, sql.replace('\n', ' '), params) self.db_cursor.execute(sql.replace('#db#', db_name), params) def fetch(self, db_name, sql, params): |