Commit ec9e605e8c7c0cc6b480dfddc4de159094646d4f

Authored by Perry Werneck
1 parent a749fdae

Fixing syslog messages.

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/main/main.c
... ... @@ -71,7 +71,7 @@ static gboolean quit_signal(GtkApplication *app) {
71 71 #endif // G_OS_UNIX
72 72  
73 73 static void g_log_to_lib3270(const gchar *log_domain,GLogLevelFlags G_GNUC_UNUSED(log_level),const gchar *message,gpointer G_GNUC_UNUSED(user_data)) {
74   - lib3270_write_log(NULL,log_domain,"%s",message);
  74 + lib3270_write_log(NULL,log_domain ? log_domain : G_STRINGIFY(PRODUCT_NAME),"%s",message);
75 75 }
76 76  
77 77 int main (int argc, char **argv) {
... ...