Skip to content

Commit

Permalink
fix(logger): remove FileHandler to avoid PermissionError (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
34j authored May 4, 2023
1 parent fa39c65 commit 38e0c4e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/so_vits_svc_fork/logger.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import os
import sys
from logging import (
DEBUG,
INFO,
FileHandler,
StreamHandler,
basicConfig,
captureWarnings,
getLogger,
)
from logging import DEBUG, INFO, StreamHandler, basicConfig, captureWarnings, getLogger
from pathlib import Path

from rich.logging import RichHandler
Expand All @@ -29,7 +21,7 @@ def init_logger() -> None:
datefmt="[%X]",
handlers=[
StreamHandler() if is_notebook() else RichHandler(),
FileHandler(f"{package_name}.log"),
# FileHandler(f"{package_name}.log"),
],
)
if IS_TEST:
Expand Down

0 comments on commit 38e0c4e

Please sign in to comment.