Always redirect log handler

The log handler takes care of the verbosity level.  Use the custom
handler even without running daemon in verbose mode or journald.
This commit is contained in:
Mario Limonciello 2024-03-27 07:34:41 -05:00
parent ca14f5875d
commit b4627e3e81

View file

@ -1503,8 +1503,7 @@ int main (int argc, char **argv)
g_unix_signal_add (SIGINT, quit_signal_callback, data);
/* redirect all domains */
if (verbose && !g_log_writer_is_journald (fileno (stdout)))
g_log_set_default_handler (debug_handler_cb, data);
g_log_set_default_handler (debug_handler_cb, data);
g_debug ("Starting power-profiles-daemon version "VERSION);