Skip to content

Commit

Permalink
Removed Console force terminal that was breaking rich progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza committed Oct 3, 2024
1 parent d0c3a3c commit 7c84bf0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions paperqa/agents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from typing import Any

from pydantic_settings import CliSettingsSource
from rich.console import Console
from rich.logging import RichHandler

from paperqa.settings import Settings, get_settings
Expand Down Expand Up @@ -65,11 +64,7 @@ def is_running_under_cli() -> bool:
def set_up_rich_handler(install: bool = True) -> RichHandler:
"""Add a RichHandler to the paper-qa "root" logger, and return it."""
rich_handler = RichHandler(
rich_tracebacks=True,
markup=True,
show_path=False,
show_level=False,
console=Console(force_terminal=True),
rich_tracebacks=True, markup=True, show_path=False, show_level=False
)
rich_handler.setFormatter(logging.Formatter("%(message)s", datefmt="[%X]"))
if install and not any(
Expand Down

0 comments on commit 7c84bf0

Please sign in to comment.