Commit ce107127 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Monitor: Print warnings about unexpected notification commands

parent d5655c6a
......@@ -642,6 +642,7 @@ void MonitorPrivate::commandReceived(qint64 tag, const Protocol::Command &comman
} else {
subname += QByteArray::number(quintptr(q));
}
qCDebug(AKONADICORE_LOG) << q_ptr << "Subscribing as \"" << subname << "\"";
Protocol::CreateSubscriptionCommand subCmd(subname);
ntfConnection->sendCommand(2, subCmd);
break;
......@@ -663,7 +664,7 @@ void MonitorPrivate::commandReceived(qint64 tag, const Protocol::Command &comman
break;
default:
// TODO
qCWarning(AKONADICORE_LOG) << "Received an unexpected response on Notification stream: "<< command.debugString();
break;
}
} else {
......@@ -675,6 +676,7 @@ void MonitorPrivate::commandReceived(qint64 tag, const Protocol::Command &comman
slotNotify(command);
break;
default:
qCWarning(AKONADICORE_LOG) << "Received an unexpected message on Notification stream:" << command.debugString();
break;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment