diff options
author | emkael <emkael@tlen.pl> | 2022-03-27 21:25:55 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2022-03-27 21:27:22 +0200 |
commit | 9a3a4cf5ade30c48ca455f92a22acecab151cef8 (patch) | |
tree | b5b5562941e08a8221e0751b6509538e7423432b /jfr_playoff | |
parent | c2dab703b1a364ee000f222714cbb9dccf736f92 (diff) |
Better logging of phase objects
Diffstat (limited to 'jfr_playoff')
-rw-r--r-- | jfr_playoff/data/__init__.py | 2 | ||||
-rw-r--r-- | jfr_playoff/generator.py | 1 |
2 files changed, 2 insertions, 1 deletions
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']) |