Closed HyazOulephant closed 1 year ago
I am running into the exact same issue. This is pretty annoying.
Hi @HyazOulephant -- per config.py this is just the default config if you don't inherit your parent application's logging scheme.
See lines 51-53
# You might integrate the library in an application with a predefined logging scheme. If so, you may not need the
# library's default logging handlers, formatters etc.--instead, you can inherit an external logger instance.
INHERIT_LOGGING_CONFIG = False
So if you want to define it differently, set TRUE and then define the logging scheme in your parent application.
Alternatively, if you'd like to enable changing the logging levels more granularly inside the library, we'd welcome a backwards-compatible PR that enabled that.
In any case, this is not a bug. But thanks for asking!
In meraki.DashboardAPI(...) function, it seems that some parts of the code are unreachable. I'm attempting to limit logging to console.
In the function's code, it looks like last if loops are not reachable because a logging system is configured by default.
Is this a bug ? If not, how can I manually define the logging level to get Warning and upper level logs only ? Thank you