Set log verbosity before calling csync_init.

This commit is contained in:
Klaas Freitag 2013-04-17 15:29:22 +02:00
parent 88184d14d6
commit a4be3f304d

View file

@ -349,6 +349,7 @@ void CSyncThread::startSync()
_target.toUtf8().data()) < 0 ) { _target.toUtf8().data()) < 0 ) {
emit csyncError( tr("CSync create failed.") ); emit csyncError( tr("CSync create failed.") );
} }
csync_set_log_verbosity(csync, 11);
MirallConfigFile cfg; MirallConfigFile cfg;
csync_set_config_dir( csync, cfg.configPath().toUtf8() ); csync_set_config_dir( csync, cfg.configPath().toUtf8() );
@ -380,7 +381,6 @@ void CSyncThread::startSync()
// set module properties, mainly the proxy information. // set module properties, mainly the proxy information.
// do not use QLatin1String here because that has to be real const char* for C. // 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, "csync_context", csync);
csync_set_module_property(csync, "proxy_type", (char*) proxyTypeToCStr(_proxy.type()) ); csync_set_module_property(csync, "proxy_type", (char*) proxyTypeToCStr(_proxy.type()) );
csync_set_module_property(csync, "proxy_host", _proxy.hostName().toUtf8().data() ); csync_set_module_property(csync, "proxy_host", _proxy.hostName().toUtf8().data() );