diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-20 16:45:18 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-20 16:45:18 +0200 |
commit | dfb0495ead6cf25f1e9e1ed03a78d249ae2f4498 (patch) | |
tree | 837228c10d5d4f6d03db3db6599805e135cfa1fd /common/resourceaccess.cpp | |
parent | 7d96ff88e73dd2b015bb2edfb887365cbf827855 (diff) | |
download | sink-dfb0495ead6cf25f1e9e1ed03a78d249ae2f4498.tar.gz sink-dfb0495ead6cf25f1e9e1ed03a78d249ae2f4498.zip |
More descriptive debug messages
Diffstat (limited to 'common/resourceaccess.cpp')
-rw-r--r-- | common/resourceaccess.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/resourceaccess.cpp b/common/resourceaccess.cpp index 7f9306b..fba7a8b 100644 --- a/common/resourceaccess.cpp +++ b/common/resourceaccess.cpp | |||
@@ -400,7 +400,7 @@ void ResourceAccess::connected() | |||
400 | 400 | ||
401 | { | 401 | { |
402 | flatbuffers::FlatBufferBuilder fbb; | 402 | flatbuffers::FlatBufferBuilder fbb; |
403 | auto name = fbb.CreateString(QString::number(QCoreApplication::applicationPid()).toLatin1()); | 403 | auto name = fbb.CreateString(QString("PID: %1 ResourceAccess: %2").arg(QCoreApplication::applicationPid()).arg(reinterpret_cast<qlonglong>(this)).toLatin1()); |
404 | auto command = Akonadi2::CreateHandshake(fbb, name); | 404 | auto command = Akonadi2::CreateHandshake(fbb, name); |
405 | Akonadi2::FinishHandshakeBuffer(fbb, command); | 405 | Akonadi2::FinishHandshakeBuffer(fbb, command); |
406 | Commands::write(d->socket.data(), ++d->messageId, Commands::HandshakeCommand, fbb); | 406 | Commands::write(d->socket.data(), ++d->messageId, Commands::HandshakeCommand, fbb); |
@@ -413,8 +413,8 @@ void ResourceAccess::connected() | |||
413 | 413 | ||
414 | void ResourceAccess::disconnected() | 414 | void ResourceAccess::disconnected() |
415 | { | 415 | { |
416 | d->socket->close(); | ||
417 | log(QString("Disconnected from %1").arg(d->socket->fullServerName())); | 416 | log(QString("Disconnected from %1").arg(d->socket->fullServerName())); |
417 | d->socket->close(); | ||
418 | //TODO fail all existing jobs? or retry | 418 | //TODO fail all existing jobs? or retry |
419 | d->abortPendingOperations(); | 419 | d->abortPendingOperations(); |
420 | emit ready(false); | 420 | emit ready(false); |