Improve warning handling a bit

We were printing the full program name as prefix for warnings,
which does not really help with readability. Lets just use
the single-char 'F:' prefix for all messages, regardless of
log level.

Closes: #2472
Approved by: matthiasclasen
This commit is contained in:
Matthias Clasen
2018-12-30 18:33:04 -05:00
committed by Atomic Bot
parent 2c794c5d82
commit ee072c24a4

View File

@@ -178,11 +178,7 @@ message_handler (const gchar *log_domain,
const gchar *message,
gpointer user_data)
{
/* Make this look like normal console output */
if (log_level & G_LOG_LEVEL_DEBUG)
g_printerr ("F: %s\n", message);
else
g_printerr ("%s: %s\n", g_get_prgname (), message);
g_printerr ("F: %s\n", message);
}
static GOptionContext *