Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.2.3 #574

Merged
merged 2 commits into from
Feb 17, 2023
Merged

2.2.3 #574

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Unclutter logging a bit
  • Loading branch information
mmcauliffe committed Feb 17, 2023
commit 77029261c55fd4eaf58227f0bc31bb75ebc91a97
6 changes: 4 additions & 2 deletions montreal_forced_aligner/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
console = Console(
theme=Theme(
{
"logging.level.debug": "dim cyan",
"logging.level.debug": "cyan",
"logging.level.info": "green",
"logging.level.warning": "yellow",
"logging.level.error": "red",
Expand Down Expand Up @@ -194,7 +194,9 @@ def configure_logger(identifier: str, log_file: Optional[Path] = None) -> None:
file_handler.setFormatter(formatter)
logger.addHandler(file_handler)
elif not config.current_profile.quiet:
handler = RichHandler(rich_tracebacks=True, log_time_format="", console=console)
handler = RichHandler(
rich_tracebacks=True, log_time_format="", console=console, show_path=False
)
if config.current_profile.verbose:
handler.setLevel(logging.DEBUG)
logging.getLogger("sqlalchemy.engine").setLevel(logging.DEBUG)
Expand Down