From 9a3a4cf5ade30c48ca455f92a22acecab151cef8 Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 27 Mar 2022 21:25:55 +0200 Subject: Better logging of phase objects --- jfr_playoff/data/__init__.py | 2 +- jfr_playoff/generator.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'jfr_playoff') diff --git a/jfr_playoff/data/__init__.py b/jfr_playoff/data/__init__.py index 88e9f24..5ab6ffe 100644 --- a/jfr_playoff/data/__init__.py +++ b/jfr_playoff/data/__init__.py @@ -75,7 +75,7 @@ class PlayoffData(object): phase_pos += 1 phase_object.matches[phase_pos] = match['id'] phase_pos += 1 - PlayoffLogger.get('data').info('phase object: %s', phase_object) + PlayoffLogger.get('data').info('phase object from config: %s', phase_object) self.grid.append(phase_object) return self.grid diff --git a/jfr_playoff/generator.py b/jfr_playoff/generator.py index 8cc0093..0d5a510 100644 --- a/jfr_playoff/generator.py +++ b/jfr_playoff/generator.py @@ -328,6 +328,7 @@ class PlayoffGenerator(object): finishing_positions = {} finishing_places = set() for phase in grid: + PlayoffLogger.get('generator').info('phase object to generate: %s', phase) grid_x = col_no * self.page['width'] + (col_no + 1) * self.page['margin'] \ if self.page.get('starting_position_indicators', None) \ else col_no * (self.page['width'] + self.page['margin']) -- cgit v1.2.3