-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect only GLib loggers to Journal #5962
Redirect only GLib loggers to Journal #5962
Conversation
So this seems to work well enough: A couple notes:
|
/kickstart-test --testtype smoke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, this is great but there are some interesting points for improvement we should take a look on.
92c7f55
to
b5d259c
Compare
I've updated the PR based on the suggestions above. There is still one problematic message getting into console but it's not related to this so let's resolve that in another PR. |
/kickstart-test --testtype smoke |
@M4rtinK and me decided that I'll take over this PR. So I'm removing my review. |
Previously we redirected all output from the main Anaconda process to Journal to avoid GTK log messages (as GTK runs in the main process) from spamming TTY. Turns out this broke a couple things, such as the shell prompt in rescue mode. So drop the wholesale process output redirection and instead just redirect (hopefully) all GLib based loggers (used by GTK) to Journal. Related: RHEL-58834
This place is used for all GLib imports to avoid gi.require import across the code base. Related: RHEL-58834
This is not required because we solve that on level of LogHandler which is used in this solution. Related: RHEL-58834
Do not ignore log levels from GLib when redirecting these logs to our logs. Related: RHEL-58834
b5d259c
to
1b14639
Compare
Rebased to fix the test. |
/kickstart-test --testtype smoke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me - could not do it better myself! ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Previously we redirected all output from the main Anaconda process to Journal to avoid GTK log messages (as GTK runs in the main process) from spamming TTY. Turns out this broke a couple things, such as the shell prompt in rescue mode.
So drop the wholesale process output redirection and instead just redirect (hopefully) all GLib based loggers (used by GTK) to Journal.
Related: RHEL-58834