Skip to content

Commit

Permalink
color formmatter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SpencerPresley committed Dec 17, 2024
1 parent ad60df5 commit 7295d47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "academic_metrics"
version = "1.0.3"
version = "1.0.4"
description = "A tool to extract and format academic data from Web of Science and Crossref"
authors = [
{ name = "Spencer Presley", email = "[email protected]" },
Expand Down
7 changes: 4 additions & 3 deletions src/academic_metrics/configs/global_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,13 @@ def format(self, record: logging.LogRecord) -> str:
_config_file_formatter = logging.Formatter(
"%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)
_config_color_formatter = ColorFormatter(
"%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)
_file_handler.setFormatter(_config_file_formatter)
_config_logger.addHandler(_file_handler)

_config_color_formatter = ColorFormatter(
"%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)

if LOG_TO_CONSOLE:
_console_handler = logging.StreamHandler()
_console_handler.setLevel(LOG_LEVEL)
Expand Down

0 comments on commit 7295d47

Please sign in to comment.