Minor debugging tidy ups. Some tracing disabled until either a configurable use is...
[qwerkisync] / main.cpp
index c81212e..a19b8dc 100644 (file)
--- a/main.cpp
+++ b/main.cpp
 
 #include "ui_dialog.h"
 
+#include <QDebug>
 #include <QtGui>
 #include <QtGui/QApplication>
 #include <QHash>
 
+#include <glib-2.0/glib.h>
+void g_log_default_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message, gpointer unused_data)
+{
+       qDebug() << "GLIB: <D>" << log_domain << "<L>" << log_level << "<M>" << message << "\n";
+}
+
 int main(int argc, char *argv[])
 {
+       g_log_set_default_handler(g_log_default_handler, NULL);
+
        QApplication app(argc, argv);
 
        Settings settings;