From: allexzander Date: Fri, 2 Apr 2021 08:04:42 +0000 (+0300) Subject: Reduce Socket API logging. X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~279^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e15045977ed85437158678a0da1d6cbd43431a58;p=nextcloud-desktop.git Reduce Socket API logging. Signed-off-by: allexzander --- diff --git a/src/gui/socketapi.cpp b/src/gui/socketapi.cpp index 7f821a645..79e1e5482 100644 --- a/src/gui/socketapi.cpp +++ b/src/gui/socketapi.cpp @@ -180,11 +180,11 @@ Q_LOGGING_CATEGORY(lcPublicLink, "nextcloud.gui.socketapi.publiclink", QtInfoMsg void SocketListener::sendMessage(const QString &message, bool doWait) const { if (!socket) { - qCInfo(lcSocketApi) << "Not sending message to dead socket:" << message; + qCWarning(lcSocketApi) << "Not sending message to dead socket:" << message; return; } - qCInfo(lcSocketApi) << "Sending SocketAPI message -->" << message << "to" << socket; + qCDebug(lcSocketApi) << "Sending SocketAPI message -->" << message << "to" << socket; QString localMessage = message; if (!localMessage.endsWith(QLatin1Char('\n'))) { localMessage.append(QLatin1Char('\n')); @@ -313,6 +313,7 @@ void SocketApi::slotNewConnection() foreach (Folder *f, FolderMan::instance()->map()) { if (f->canSync()) { QString message = buildRegisterPathMessage(removeTrailingSlash(f->path())); + qCInfo(lcSocketApi) << "Trying to send SocketAPI Register Path Message -->" << message << "to" << listener.socket; listener.sendMessage(message); } } @@ -417,6 +418,7 @@ void SocketApi::slotRegisterPath(const QString &alias) if (f) { QString message = buildRegisterPathMessage(removeTrailingSlash(f->path())); foreach (auto &listener, _listeners) { + qCInfo(lcSocketApi) << "Trying to send SocketAPI Register Path Message -->" << message << "to" << listener.socket; listener.sendMessage(message); } }