Skip to content

Commit

Permalink
Fixed #86 - Logs are now dumped to STDOUt if setting active
Browse files Browse the repository at this point in the history
  • Loading branch information
dotchetter committed Dec 25, 2023
1 parent d91b514 commit 71a1196
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyttman/tools/pyttmancli/terraforming.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ def bootstrap_app(module: str = None, devmode: bool = False,
logger.setLevel(logging.DEBUG)
logger.addHandler(logging_handle)

if settings.LOG_TO_STDOUT:
stdout_handle = logging.StreamHandler(sys.stdout)
stdout_handle.setFormatter(logging.Formatter(logging_format))
logger.addHandler(stdout_handle)

# Set the configured instance of logger to the pyttman.PyttmanLogger object
pyttman.logger.LOG_INSTANCE = logger

Expand Down

0 comments on commit 71a1196

Please sign in to comment.