From 1eabdee253818ce7eb0ef29eccf152d514e92347 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Fri, 7 Dec 2012 09:03:24 +0100 Subject: [PATCH] Enable logging through new csync logging api --- src/mirall/csyncthread.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mirall/csyncthread.cpp b/src/mirall/csyncthread.cpp index 9b0d89ae5..a22d40d1a 100644 --- a/src/mirall/csyncthread.cpp +++ b/src/mirall/csyncthread.cpp @@ -50,7 +50,7 @@ void csyncLogCatcher(CSYNC *ctx, const char *buffer, void *userdata) { - Logger::instance()->csyncLog( QString::fromUtf8(function) + QLatin1String("> ") + QString::fromUtf8(buffer) ); + Logger::instance()->csyncLog( QString::fromUtf8(buffer) ); } CSyncThread::CSyncThread(const QString &source, const QString &target) @@ -172,6 +172,7 @@ void CSyncThread::startSync() // set module properties, mainly the proxy information. // do not use QLatin1String here because that has to be real const char* for C. + csync_set_log_verbosity(csync, 11); csync_set_module_property(csync, "csync_context", csync); csync_set_module_property(csync, "proxy_type", proxyTypeToCStr( _proxy.type()).data() ); csync_set_module_property(csync, "proxy_host", _proxy.hostName().toAscii().data() );