Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Dec 12, 2024
1 parent f7b98ac commit 4647e8b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/therapy/log.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""Provide functions and utilities related to application logging."""

import logging
from pathlib import Path


def _quiet_upstream_libs() -> None:
Expand All @@ -15,7 +14,7 @@ def _quiet_upstream_libs() -> None:


def configure_logs(
log_file: Path | None = None,
log_file: str | None = None,
log_level: int = logging.DEBUG,
quiet_upstream: bool = True,
) -> None:
Expand All @@ -26,11 +25,11 @@ def configure_logs(
:param quiet_upstream: if True, turn off debug logging for a selection of libraries
"""
if log_file is None:
log_file = Path("therapy.log")
log_file = "therapy.log"
if quiet_upstream:
_quiet_upstream_libs()
logging.basicConfig(
filename=log_file.absolute().as_uri(),
filename=log_file,
format="[%(asctime)s] - %(name)s - %(levelname)s : %(message)s",
)
logger = logging.getLogger(__package__)
Expand Down

0 comments on commit 4647e8b

Please sign in to comment.