We ignored csync log, but we also need to silent Qt debug output.
We need to ignore it at the very begining because there might be
qDebug also in account creation.
Issue #5196
using namespace OCC;
+
+static void nullMessageHandler(QtMsgType, const char *) {}
+
struct CmdOptions {
QString source_dir;
QString target_url;
parseOptions( app.arguments(), &options );
+ csync_set_log_level(options.silent ? 1 : 11);
+ if (options.silent) {
+ qInstallMsgHandler(nullMessageHandler);
+ }
+
AccountPtr account = Account::create();
if( !account ) {
int restartCount = 0;
restart_sync:
- csync_set_log_level(options.silent ? 1 : 11);
opts = &options;