Commit 0243e1e2 authored by Max Kellermann's avatar Max Kellermann

log: print the log_domain

parent 1c0c5832
...@@ -67,7 +67,7 @@ static const char *log_date(void) ...@@ -67,7 +67,7 @@ static const char *log_date(void)
} }
static void static void
mpd_log_func(G_GNUC_UNUSED const gchar *log_domain, mpd_log_func(const gchar *log_domain,
G_GNUC_UNUSED GLogLevelFlags log_level, G_GNUC_UNUSED GLogLevelFlags log_level,
const gchar *message, G_GNUC_UNUSED gpointer user_data) const gchar *message, G_GNUC_UNUSED gpointer user_data)
{ {
...@@ -87,8 +87,12 @@ mpd_log_func(G_GNUC_UNUSED const gchar *log_domain, ...@@ -87,8 +87,12 @@ mpd_log_func(G_GNUC_UNUSED const gchar *log_domain,
} else } else
converted = NULL; converted = NULL;
fprintf(file, "%s%s", if (log_domain == NULL)
log_domain = "";
fprintf(file, "%s%s%s%s",
stdout_mode ? "" : log_date(), stdout_mode ? "" : log_date(),
log_domain, *log_domain == 0 ? "" : ": ",
message); message);
g_free(converted); g_free(converted);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment