Skip to content

Commit

Permalink
Merge pull request #5940 from jkonecny12/master-fix-stderr-to-journal…
Browse files Browse the repository at this point in the history
…-logging

Log stderr to journal only on supported platforms
  • Loading branch information
KKoukiou authored Oct 16, 2024
2 parents a79eb89 + 58a47cc commit fdf4e41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyanaconda/anaconda_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ def stderrToJournal(self):
Redirect Anaconda main process stderr to Journal, as otherwise this could end up writing
all over the TUI on TTY1.
"""
if not self.write_to_journal:
return

# create an appropriately named Journal writing stream
anaconda_stderr_stream = journal.stream("anaconda", priority=journal.LOG_ERR)
# redirect stderr of this process to the stream
Expand Down

0 comments on commit fdf4e41

Please sign in to comment.