Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJocelyn Turcotte <jturcotte@woboq.com>2017-07-04 17:41:40 +0300
committerChristian Kamm <mail@ckamm.de>2017-07-07 11:49:51 +0300
commit9d818066a774543e752bc323be9fcadfd509b8a3 (patch)
tree3c46d929547c70f7357d67c725f85e1faa145088 /src/gui/socketapi.cpp
parent0238a29c7cd8bffce79ac684d3aae15bed481412 (diff)
SocketApi: Improve logging
Diffstat (limited to 'src/gui/socketapi.cpp')
-rw-r--r--src/gui/socketapi.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gui/socketapi.cpp b/src/gui/socketapi.cpp
index bf4e75d3b..ccfe5167e 100644
--- a/src/gui/socketapi.cpp
+++ b/src/gui/socketapi.cpp
@@ -128,7 +128,7 @@ public:
void sendMessage(const QString &message, bool doWait = false) const
{
- qCInfo(lcSocketApi) << "Sending SocketAPI message: " << message << "to" << socket;
+ qCInfo(lcSocketApi) << "Sending SocketAPI message -->" << message << "to" << socket;
QString localMessage = message;
if (!localMessage.endsWith(QLatin1Char('\n'))) {
localMessage.append(QLatin1Char('\n'));
@@ -282,6 +282,7 @@ void SocketApi::slotReadSocket()
// make sure that the path will match, especially on OS X.
QString line = QString::fromUtf8(socket->readLine()).normalized(QString::NormalizationForm_C);
line.chop(1); // remove the '\n'
+ qCInfo(lcSocketApi) << "Received SocketAPI message <--" << line << "from" << socket;
QByteArray command = line.split(":").value(0).toAscii();
QByteArray functionWithArguments = "command_" + command + "(QString,SocketListener*)";
int indexOfMethod = staticMetaObject.indexOfMethod(functionWithArguments);
@@ -373,8 +374,6 @@ void SocketApi::command_RETRIEVE_FOLDER_STATUS(const QString &argument, SocketLi
void SocketApi::command_RETRIEVE_FILE_STATUS(const QString &argument, SocketListener *listener)
{
- qCDebug(lcSocketApi) << argument;
-
QString statusString;
Folder *syncFolder = FolderMan::instance()->folderForPath(argument);
@@ -403,8 +402,6 @@ void SocketApi::command_RETRIEVE_FILE_STATUS(const QString &argument, SocketList
void SocketApi::command_SHARE(const QString &localFile, SocketListener *listener)
{
- qCDebug(lcSocketApi) << localFile;
-
auto theme = Theme::instance();
Folder *shareFolder = FolderMan::instance()->folderForPath(localFile);
@@ -454,8 +451,6 @@ void SocketApi::command_VERSION(const QString &, SocketListener *listener)
void SocketApi::command_SHARE_STATUS(const QString &localFile, SocketListener *listener)
{
- qCDebug(lcSocketApi) << localFile;
-
Folder *shareFolder = FolderMan::instance()->folderForPath(localFile);
if (!shareFolder) {