This commit is contained in:
@@ -51,14 +51,14 @@ def test_custom_log_outputs(levelname, logfunc, message, capsys):
|
||||
|
||||
def test_import_logging_once_per_module():
|
||||
code = textwrap.dedent("""
|
||||
import sys
|
||||
from slic.utils.logcfg import setup_import_logging, add_log_Level, logcfg
|
||||
from slic.utils.logcfg import setup_import_logging
|
||||
setup_import_logging()
|
||||
from slic.utils.logcfg import add_log_Level, logcfg
|
||||
from logzero import logger as log
|
||||
import logging
|
||||
|
||||
add_log_Level(log, "TRACE", logging.DEBUG - 1, func_name="trace")
|
||||
logcfg("TRACE")
|
||||
setup_import_logging()
|
||||
|
||||
import json
|
||||
import math
|
||||
|
||||
Reference in New Issue
Block a user