Skip to content

Commit

Permalink
Clean up test/debug logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
liffiton committed Jul 30, 2024
1 parent 8edbb8f commit a1dceed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gened/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,13 @@ def create_app_base(import_name: str, app_config: dict[str, Any], instance_path:
'root': {
'level': 'INFO',
'handlers': ['wsgi']
}
},
})
else:
# For testing/debugging, ensure DEBUG level logging.
import logging
logging.getLogger().setLevel(logging.DEBUG)
logging.getLogger('markdown_it').setLevel(logging.INFO) # avoid noisy debug logging in markdown_it
#import logging_tree
#logging_tree.printout()
logging.debug("DEBUG logging enabled.") # This appears to be required for the config to "stick"?
Expand Down

0 comments on commit a1dceed

Please sign in to comment.