Skip to content

Commit

Permalink
Chore: Adjust logging
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 30, 2023
1 parent ca19262 commit 0c283a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pueblo/util/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def setup_logging(level=logging.INFO, verbose: bool = False):


def setup_logging_standard(level=logging.INFO, verbose: bool = False):
log_format = "%(asctime)-15s [%(name)-35s] %(levelname)-8s: %(message)s"
log_format = "%(asctime)-15s [%(name)-26s] %(levelname)-8s: %(message)s"
logging.basicConfig(format=log_format, stream=sys.stderr, level=level)


Expand All @@ -21,7 +21,7 @@ def setup_logging_colorlog(level=logging.INFO, verbose: bool = False):
from colorlog.escape_codes import escape_codes

reset = escape_codes["reset"]
log_format = f"%(asctime)-15s [%(name)-36s] %(log_color)s%(levelname)-8s:{reset} %(message)s"
log_format = f"%(asctime)-15s [%(name)-26s] %(log_color)s%(levelname)-8s:{reset} %(message)s"

handler = colorlog.StreamHandler()
handler.setFormatter(colorlog.ColoredFormatter(log_format))
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ minversion = "2.0"
addopts = """
-rfEX -p pytester --strict-markers --verbosity=3
--cov --cov-report=term-missing --cov-report=xml
--capture=no
"""
log_level = "DEBUG"
log_cli_level = "DEBUG"
Expand Down

0 comments on commit 0c283a1

Please # to comment.