We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4414562 commit 3213565Copy full SHA for 3213565
wc_utils/debug_logs/core.py
@@ -39,7 +39,18 @@ def setup_logs(self, options):
39
if 'debug_logs' in options:
40
options = options['debug_logs']
41
42
+ '''
43
+ import warnings
44
+ with warnings.catch_warnings():
45
+ # Ignore warnings in codecs that are generated by logging2.FileHandler() calls
46
+ # logging2 is an archived repo
47
+ warnings.filterwarnings("ignore",
48
+ category=RuntimeWarning,
49
+ module='codecs')
50
+ _, loggers = LoggerConfigurator.from_dict(options)
51
52
_, loggers = LoggerConfigurator.from_dict(options)
53
+
54
self.logs = loggers
55
return self
56
0 commit comments