diff options
| author | Scott <[email protected]> | 2022-01-12 09:06:29 -0800 |
|---|---|---|
| committer | Scott <[email protected]> | 2022-01-12 09:06:29 -0800 |
| commit | 55a3172e37855f388b9ba0dfc91641a6c9ad1376 (patch) | |
| tree | 01285a4abb59103ec437375d1133f9d00caa1497 /logging_utils.py | |
| parent | ffc4022c1ea2c2a5892150ff55e6c9a9ddbb8756 (diff) | |
Scale back warnings.warn and add stacklevels= where appropriate.
Diffstat (limited to 'logging_utils.py')
| -rw-r--r-- | logging_utils.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/logging_utils.py b/logging_utils.py index 20a57f7..f7fac03 100644 --- a/logging_utils.py +++ b/logging_utils.py @@ -13,7 +13,6 @@ import os import random import sys from typing import Callable, Iterable, Mapping, Optional -import warnings from overrides import overrides import pytz @@ -526,7 +525,6 @@ def initialize_logging(logger=None) -> logging.Logger: if config.config['logging_clear_preexisting_handlers'] and preexisting_handlers_count > 0: msg = 'Logging cleared {preexisting_handlers_count} global handlers (--logging_clear_preexisting_handlers)' logger.warning(msg) - warnings.warn(msg) logger.debug(f'Logging format specification is "{fmt}"') if config.config['logging_debug_threads']: logger.debug('...Logging format spec captures tid/pid (--logging_debug_threads)') |
