Skip to content

Commit

Permalink
Don't log "enabled" if auto-reload disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysommer authored Sep 29, 2021
1 parent 595d2c7 commit eee4466
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sanic/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,8 @@ def _helper(
logger.info(f"Goin' Fast @ {proto}://{host}:{port}")

debug_mode = "enabled" if self.debug else "disabled"
logger.debug("Sanic auto-reload: enabled")
reload_mode = "enabled" if auto_reload else "disabled"
logger.debug(f"Sanic auto-reload: {reload_mode}")
logger.debug(f"Sanic debug mode: {debug_mode}")

return server_settings
Expand Down

0 comments on commit eee4466

Please sign in to comment.