mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 22:22:22 +00:00
daemons: Treat g_info() as equivalent to g_debug()
Same as the previous commit, but for anything that runs in the background. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
ac4e322629
commit
ea584acf20
@ -692,7 +692,7 @@ message_handler (const gchar *log_domain,
|
||||
gpointer user_data)
|
||||
{
|
||||
/* Make this look like normal console output */
|
||||
if (log_level & G_LOG_LEVEL_DEBUG)
|
||||
if (log_level & (G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO))
|
||||
g_printerr ("F: %s\n", message);
|
||||
else
|
||||
g_printerr ("%s: %s\n", g_get_prgname (), message);
|
||||
@ -765,7 +765,7 @@ main (int argc,
|
||||
}
|
||||
|
||||
if (opt_verbose)
|
||||
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, message_handler, NULL);
|
||||
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO, message_handler, NULL);
|
||||
|
||||
g_debug ("Started flatpak-authenticator");
|
||||
|
||||
|
||||
@ -2967,7 +2967,7 @@ message_handler (const gchar *log_domain,
|
||||
gpointer user_data)
|
||||
{
|
||||
/* Make this look like normal console output */
|
||||
if (log_level & G_LOG_LEVEL_DEBUG)
|
||||
if (log_level & (G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO))
|
||||
g_printerr ("F: %s\n", message);
|
||||
else
|
||||
g_printerr ("%s: %s\n", g_get_prgname (), message);
|
||||
@ -3037,7 +3037,7 @@ main (int argc,
|
||||
}
|
||||
|
||||
if (opt_verbose)
|
||||
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, message_handler, NULL);
|
||||
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO, message_handler, NULL);
|
||||
|
||||
client_pid_data_hash = g_hash_table_new_full (NULL, NULL, NULL, (GDestroyNotify) pid_data_free);
|
||||
|
||||
|
||||
@ -680,7 +680,7 @@ message_handler (const gchar *log_domain,
|
||||
gpointer user_data)
|
||||
{
|
||||
/* Make this look like normal console output */
|
||||
if (log_level & G_LOG_LEVEL_DEBUG)
|
||||
if (log_level & (G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO))
|
||||
g_printerr ("F: %s\n", message);
|
||||
else
|
||||
g_printerr ("%s: %s\n", g_get_prgname (), message);
|
||||
@ -826,7 +826,7 @@ main (int argc,
|
||||
}
|
||||
|
||||
if (verbose)
|
||||
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, message_handler, NULL);
|
||||
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO, message_handler, NULL);
|
||||
|
||||
client_pid_data_hash = g_hash_table_new_full (NULL, NULL, NULL, (GDestroyNotify) pid_data_free);
|
||||
|
||||
|
||||
@ -2289,7 +2289,7 @@ message_handler (const gchar *log_domain,
|
||||
gpointer user_data)
|
||||
{
|
||||
/* Make this look like normal console output */
|
||||
if (log_level & G_LOG_LEVEL_DEBUG)
|
||||
if (log_level & (G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO))
|
||||
g_printerr ("FH: %s\n", message);
|
||||
else
|
||||
g_printerr ("%s: %s\n", g_get_prgname (), message);
|
||||
@ -2373,12 +2373,12 @@ main (int argc,
|
||||
flatpak_disable_fancy_output ();
|
||||
|
||||
if (opt_verbose > 0)
|
||||
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, message_handler, NULL);
|
||||
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO, message_handler, NULL);
|
||||
if (opt_verbose > 1)
|
||||
g_log_set_handler (G_LOG_DOMAIN "2", G_LOG_LEVEL_DEBUG, message_handler, NULL);
|
||||
g_log_set_handler (G_LOG_DOMAIN "2", G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO, message_handler, NULL);
|
||||
|
||||
if (opt_ostree_verbose)
|
||||
g_log_set_handler ("OSTree", G_LOG_LEVEL_DEBUG, message_handler, NULL);
|
||||
g_log_set_handler ("OSTree", G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO, message_handler, NULL);
|
||||
|
||||
if (!on_session_bus)
|
||||
{
|
||||
|
||||
@ -322,7 +322,7 @@ message_handler (const gchar *log_domain,
|
||||
gpointer user_data)
|
||||
{
|
||||
/* Make this look like normal console output */
|
||||
if (log_level & G_LOG_LEVEL_DEBUG)
|
||||
if (log_level & (G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO))
|
||||
g_printerr ("F: %s\n", message);
|
||||
else
|
||||
g_printerr ("%s: %s\n", g_get_prgname (), message);
|
||||
@ -372,7 +372,7 @@ main (int argc,
|
||||
}
|
||||
|
||||
if (opt_verbose)
|
||||
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, message_handler, NULL);
|
||||
g_log_set_handler (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO, message_handler, NULL);
|
||||
|
||||
g_debug ("Started test-authenticator");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user