Skip to content

Commit

Permalink
set debug for example
Browse files Browse the repository at this point in the history
  • Loading branch information
NormannK committed Jan 11, 2025
1 parent 2e449a7 commit ad50fc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/akkudoktoreos/utils/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from akkudoktoreos.core.logging import get_logger
from akkudoktoreos.optimization.genetic import OptimizationParameters

logger = get_logger(__name__, logging_level="DEBUG")
logger = get_logger(__name__)


class VisualizationReport(ConfigMixin):
Expand Down Expand Up @@ -589,6 +589,8 @@ def generate_example_report(filename: str = "example_report.pdf") -> None:

report.finalize_group() # Finalize the third group of charts

logger.setLevel(logging.DEBUG) # set level for example report

if logger.level == logging.DEBUG:
report.create_line_chart(
x_hours,
Expand Down

0 comments on commit ad50fc3

Please sign in to comment.