Skip to content

Commit

Permalink
disable debug logging by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiko2k committed Dec 19, 2024
1 parent 4bb7729 commit be1b53a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 51 deletions.
69 changes: 35 additions & 34 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
__pycache__/
hsaudiotag/
stagger/
pylast/
PyLyrics/
pypresence/
cache/
user-data/
.idea/
sdl2/
fonts/
*.pyd
*.pyx
*.flac
*.ogg
*.mp3
build/
*.bat
*.idl
*.tlb
*.mo
prime/
*.snap
pygettext.py
*.po~
lib/
*.DS_Store
dist/
*.exe
.dev
.venv
src/tauon_music_box.egg-info
kissfft.tar.gz
miniaudio.tar.gz
__pycache__/
hsaudiotag/
stagger/
pylast/
PyLyrics/
pypresence/
cache/
user-data/
.idea/
sdl2/
fonts/
*.pyd
*.pyx
*.flac
*.ogg
*.mp3
build/
*.bat
*.idl
*.tlb
*.mo
prime/
*.snap
pygettext.py
*.po~
lib/
*.DS_Store
dist/
*.exe
.dev
.venv
src/tauon_music_box.egg-info
kissfft.tar.gz
miniaudio.tar.gz
debug
16 changes: 0 additions & 16 deletions hard_fix.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/tauon/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def emit(self, record: dict):
],
)
# INFO+ to std_err
logging.getLogger().handlers[0].setLevel(logging.DEBUG)
logging.getLogger().handlers[0].setLevel(logging.DEBUG if os.path.isfile(install_directory / "debug") else logging.INFO)
logging.getLogger().handlers[0].setFormatter(CustomLoggingFormatter())

# https://docs.python.org/3/library/warnings.html
Expand Down

0 comments on commit be1b53a

Please sign in to comment.