You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not a bug. It is logging twice because you are extending in the global scope, which is executed once in the main process and once in the worker process. This will behave differently starting in the next release based upon sanic-org/sanic#2308
Describe the bug
When the Sanic app is ran with
debug=True
, it seems likesanic-ext
is being instantiated twice (maybe due to the reloader?).Screenshots
Debug mode:
Non-debug mode:
To Reproduce
Create a Sanic app, load
sanic-ext
into it and run it using debug mode.Expected behavior
Only one instance of
sanic-ext
is instantiated, or at least it's only logged onceEnvironment (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: