Skip to content

Commit

Permalink
Fix FFmpeg not showing process output
Browse files Browse the repository at this point in the history
Fixes #56
  • Loading branch information
JuniorIsAJitterbug committed Feb 21, 2024
1 parent afcf9c2 commit d0c7e15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tbc_video_export/process/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def run(self) -> ProcessState:
"""Run the process."""
self.state.set_has_run()

if self.wrapper.log_output:
if self._state.opts.show_process_output or self._state.opts.log_process_output:
# setup file logger
log.setup_logger(
self._logger_name,
Expand All @@ -55,7 +55,7 @@ async def run(self) -> ProcessState:
self.wrapper.process_name, self.wrapper.tbc_type
)
)
if self._state.opts.log_process_output
if self._state.opts.log_process_output and self.wrapper.log_output
else None,
)

Expand Down

0 comments on commit d0c7e15

Please sign in to comment.