Skip to content

Commit

Permalink
Version [2.0.1]
Browse files Browse the repository at this point in the history
  • Loading branch information
I-am-PUID-0 committed Jan 16, 2024
1 parent a271b2e commit 38a76f4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## Version [2.0.1] - 2024-01-16

### Fixed

- logging: Fixed logging for subprocesses


## Version [2.0.0] - 2024-01-04

### Breaking Change
Expand All @@ -21,7 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- SEERR_ADDRESS: SEERR_ADDRESS env var added to enable Overseerr/Jellyseerr integration
- PLEX_REFRESH: PLEX_REFRESH env var added to enable Plex library refresh w/ Zurg
- PLEX_MOUNT_DIR: PLEX_MOUNT_DIR env var added to enable Plex library refresh w/ Zurg

### Changed

- plex_debrid setup: plex_debrid setup process now allows for selection of Plex or Jellyfin
Expand Down
10 changes: 8 additions & 2 deletions base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ def parse_log_level_and_message(line, process_name):

def monitor_stderr(self, process, mount_name, process_name):
for line in process.stderr:
line = line.decode().strip()
if isinstance(line, bytes):
line = line.decode().strip()
else:
line = line.strip()
if line:
log_level, message = SubprocessLogger.parse_log_level_and_message(line, process_name)
log_func = self.log_methods.get(log_level, self.logger.info)
Expand All @@ -73,7 +76,10 @@ def start_monitoring_stderr(self, process, mount_name, process_name):
def log_subprocess_output(self, pipe):
try:
for line in iter(pipe.readline, ''):
line = line.strip()
if isinstance(line, bytes):
line = line.decode().strip()
else:
line = line.strip()
if line:
log_level, message = SubprocessLogger.parse_log_level_and_message(line, self.key_type)
log_func = self.log_methods.get(log_level, self.logger.info)
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
def main():
logger = get_logger()

version = '2.0.0'
version = '2.0.1'

ascii_art = f'''
Expand Down

0 comments on commit 38a76f4

Please sign in to comment.