-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
P2considered for next cycleconsidered for next cyclecscustomer successcustomer successfeaturesomething newsomething new
Description
Recently I tried using logging to record debugging information in my callbacks via app.logger
(see discussion at https://community.plot.ly/t/logging-debug-messages-suppressed-in-callbacks) and found that some debug messages were being ignored, apparently only when they were logged from callbacks.
It turned out that with the default behaviour (i.e. silence_routes_logging=True
), debug messages don't get logged after the server is started as Dash sets self.logger.setLevel(logging.INFO)
when app.run_server()
is called (see
Line 1162 in aac493c
self.logger.setLevel(logging.INFO) |
logging.DEBUG
anyway. As an end-user it was not obvious to me why my debug messages were being logged at first and then weren't.
If this would be a sensible change, I'm happy to make a mini-PR.
jkotowskib
Metadata
Metadata
Assignees
Labels
P2considered for next cycleconsidered for next cyclecscustomer successcustomer successfeaturesomething newsomething new