summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2022-03-27 21:25:55 +0200
committeremkael <emkael@tlen.pl>2022-03-27 21:27:22 +0200
commit9a3a4cf5ade30c48ca455f92a22acecab151cef8 (patch)
treeb5b5562941e08a8221e0751b6509538e7423432b
parentc2dab703b1a364ee000f222714cbb9dccf736f92 (diff)
Better logging of phase objects
-rw-r--r--jfr_playoff/data/__init__.py2
-rw-r--r--jfr_playoff/generator.py1
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'])