Skip to content

Commit

Permalink
🚸 Remove positional-only parameter in setup_logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Kajiih committed Dec 18, 2024
1 parent c49e4ce commit 8329b65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kajihs_utils/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
PROJECT_ROOT = Path(__file__).resolve().parent.parent.parent

__app_name__ = "kajihs_utils"
__version__ = "0.3.5"
__version__ = "0.3.6"
__authors__ = ["Kajih"]
__author_emails__ = ["[email protected]"]
__repo_url__ = "https://github.com/Kajiih/kajihs_utils"
Expand Down
2 changes: 1 addition & 1 deletion src/kajihs_utils/loguru.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def emit(self, record: logging.LogRecord) -> None:
logger.opt(depth=depth, exception=record.exc_info).log(level, record.getMessage())

Check failure on line 44 in src/kajihs_utils/loguru.py

View workflow job for this annotation

GitHub Actions / build (3.12, ubuntu-latest)

"opt" is not a known attribute of module "loguru" (reportAttributeAccessIssue)


def setup_logging(prefix: str = "app", /, log_dir: str | Path = "logs") -> None:
def setup_logging(prefix: str = "app", log_dir: str | Path = "logs") -> None:
"""
Set up beautiful loguru logging in files and console.
Expand Down

0 comments on commit 8329b65

Please sign in to comment.