Skip to content

Commit

Permalink
[17] Fixes #1367 Error when trying to symlink the logs folder
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed May 16, 2024
1 parent d0b6b3a commit fe0a709
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.1-develop16
2.0.1-develop17
3 changes: 2 additions & 1 deletion modules/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def __init__(self, logger_name, default_dir, screen_width, separating_character,
self.secrets = []
self.spacing = 0
self.playlists_log = os.path.join(self.playlists_dir, PLAYLISTS_LOG)
os.makedirs(self.log_dir, exist_ok=True)
if not os.path.exists(self.log_dir):
os.makedirs(self.log_dir, exist_ok=True)
self._logger = logging.getLogger(None if self.log_requests else self.logger_name)
self._logger.setLevel(logging.DEBUG)

Expand Down

0 comments on commit fe0a709

Please sign in to comment.