Cleanup
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
c3cd909a73
commit
25bd3b9834
1 changed files with 2 additions and 4 deletions
|
|
@ -270,6 +270,8 @@ set_logging(LOGGING_NAME, verbose=VERBOSE) # run before defining LOGGER
|
||||||
LOGGER = logging.getLogger(LOGGING_NAME) # define globally (used in train.py, val.py, detect.py, etc.)
|
LOGGER = logging.getLogger(LOGGING_NAME) # define globally (used in train.py, val.py, detect.py, etc.)
|
||||||
if WINDOWS: # emoji-safe logging
|
if WINDOWS: # emoji-safe logging
|
||||||
LOGGER.addFilter(EmojiFilter())
|
LOGGER.addFilter(EmojiFilter())
|
||||||
|
for logger in 'sentry_sdk', 'urllib3.connectionpool':
|
||||||
|
logging.getLogger(logger).setLevel(logging.CRITICAL)
|
||||||
|
|
||||||
|
|
||||||
class ThreadingLocked:
|
class ThreadingLocked:
|
||||||
|
|
@ -819,10 +821,6 @@ def set_sentry():
|
||||||
ignore_errors=[KeyboardInterrupt, FileNotFoundError])
|
ignore_errors=[KeyboardInterrupt, FileNotFoundError])
|
||||||
sentry_sdk.set_user({'id': SETTINGS['uuid']}) # SHA-256 anonymized UUID hash
|
sentry_sdk.set_user({'id': SETTINGS['uuid']}) # SHA-256 anonymized UUID hash
|
||||||
|
|
||||||
# Disable all sentry logging
|
|
||||||
for logger in 'sentry_sdk', 'sentry_sdk.errors':
|
|
||||||
logging.getLogger(logger).setLevel(logging.CRITICAL)
|
|
||||||
|
|
||||||
|
|
||||||
class SettingsManager(dict):
|
class SettingsManager(dict):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue