Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
chkpwd committed Nov 2, 2024
1 parent c47f11f commit efbce37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ docker run --rm -p 7979:7979 \
-e PLEX_ANIME_LIBRARY="<your_plex_anime_library>" \
ghcr.io/chkpwd/sofe:latest
```
[
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import logging


Expand All @@ -8,9 +9,9 @@


logger = logging.getLogger(__name__)
logging.basicConfig(level=logger.level, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s")
logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s")

if USER_CONFIG.debug:
if USER_CONFIG.debug is True:
logger.setLevel("DEBUG")


Expand Down Expand Up @@ -41,7 +42,7 @@ def main():
if USER_CONFIG.create_plex_collection is True:
create_plex_collection(collection_items=episodes_in_season_episode_format)

logger.debug(f"Non-Filler Episodes: {nonfillers_episodes}")
logger.debug(f"Non-Filler Episodes: {json.dumps(nonfillers_episodes, indent=4)}")

if nonfillers_episodes and USER_CONFIG.monitor_non_filler_sonarr_episodes is True:
configure_monitoring(monitored_list=episodes_to_monitor)
Expand Down

0 comments on commit efbce37

Please sign in to comment.