Skip to content

Commit

Permalink
Reorder logging and hook configurations in create_app()
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Feb 7, 2024
1 parent 2e7fc3d commit 8626494
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nextlinegraphql/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ def create_app() -> Starlette:
config = load_settings(hook)
print('Settings:', config.as_dict())

hook.hook.configure(settings=config, hook=hook)
configure_logging(config.logging)

logger = getLogger(__name__)
logger.info('Logging configured')

hook.hook.configure(settings=config, hook=hook)

plugin_names = [n for n, p in hook.list_name_plugin() if p]
logger.info(f'Pluggy project name: {hook.project_name!r}')
Expand Down

0 comments on commit 8626494

Please sign in to comment.