diff options
author | emkael <emkael@tlen.pl> | 2019-12-30 12:34:09 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-12-30 12:34:09 +0100 |
commit | 5a5326bf17a4ed3402255493efefd69544afe0d0 (patch) | |
tree | d289f94a4b2f4d93609af3c5ba39763b2b4160bc /jfr_playoff/tournamentinfo/jfrdb.py | |
parent | b869655086ca2139a532d5633d858e6fff2ccbfc (diff) |
Detailed logging categories for tournament info clients
Diffstat (limited to 'jfr_playoff/tournamentinfo/jfrdb.py')
-rw-r--r-- | jfr_playoff/tournamentinfo/jfrdb.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/jfr_playoff/tournamentinfo/jfrdb.py b/jfr_playoff/tournamentinfo/jfrdb.py index 8fd77c0..0f39b47 100644 --- a/jfr_playoff/tournamentinfo/jfrdb.py +++ b/jfr_playoff/tournamentinfo/jfrdb.py @@ -18,7 +18,7 @@ class JFRDbTournamentInfo(TournamentInfoClient): if row is not None: if len(row) > 0: link = row[0] + suffix - PlayoffLogger.get('jfrdb').info( + PlayoffLogger.get('tournament.jfrdb').info( 'generating tournament-specific link from DB %s prefix: %s -> %s', self.settings['database'], suffix, link) return link @@ -27,7 +27,7 @@ class JFRDbTournamentInfo(TournamentInfoClient): def is_finished(self): finished = self.database.fetch( self.settings['database'], p_sql.SWISS_ENDED, {}) - PlayoffLogger.get('jfrdb').info( + PlayoffLogger.get('tournament.jfrdb').info( 'fetching tournament finished status from DB %s: %s', self.settings['database'], finished) return (len(finished) > 0) and (finished[0] > 0) @@ -44,17 +44,17 @@ class JFRDbTournamentInfo(TournamentInfoClient): swiss_results = sorted( swiss_results, key=lambda t: t[1], reverse=True) swiss_results = sorted(swiss_results, key=lambda team: team[2]) - PlayoffLogger.get('jfrdb').info( + PlayoffLogger.get('tournament.jfrdb').info( 'fetched tournament results from database %s: %s', self.settings['database'], swiss_results) prev_result = None for team in swiss_results: if prev_result == team[1]: - PlayoffLogger.get('jfrdb').warning( + PlayoffLogger.get('tournament.jfrdb').warning( SWISS_TIE_WARNING, self.settings['database']) prev_result = team[1] db_teams = [[team[0], team[3], team[4]] for team in swiss_results] - PlayoffLogger.get('jfrdb').info( + PlayoffLogger.get('tournament.jfrdb').info( 'fetched team list from database %s: %s', self.settings['database'], db_teams) return db_teams |