Browse Source

error-report: disable custom log handler

When using QMP over SPICE, this causes a deadlock.
osy 2 years ago
parent
commit
9cffdf2e28
1 changed files with 2 additions and 0 deletions
  1. 2 0
      util/error-report.c

+ 2 - 0
util/error-report.c

@@ -393,6 +393,7 @@ void error_init(const char *argv0)
     /* Set the program name for error_print_loc(). */
     g_set_prgname(p ? p + 1 : argv0);
 
+#if 0 /* QEMU log handler disabled to prevent deadlock with SPICE logging */
     /*
      * This sets up glib logging so libraries using it also print their logs
      * through error_report(), warn_report(), info_report().
@@ -400,4 +401,5 @@ void error_init(const char *argv0)
     g_log_set_default_handler(qemu_log_func, NULL);
     g_warn_if_fail(qemu_glog_domains == NULL);
     qemu_glog_domains = g_strdup(g_getenv("G_MESSAGES_DEBUG"));
+#endif
 }