diff options
Diffstat (limited to 'jobs')
-rw-r--r-- | jobs/basejob.cpp | 2 | ||||
-rw-r--r-- | jobs/syncjob.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp index 2177fe9c..6c68ab66 100644 --- a/jobs/basejob.cpp +++ b/jobs/basejob.cpp @@ -50,6 +50,7 @@ BaseJob::BaseJob(ConnectionData* connection, JobHttpType type, QString name, boo emit failure(this); }); setObjectName(name); + qDebug() << "Job" << objectName() << " created"; } BaseJob::~BaseJob() @@ -61,6 +62,7 @@ BaseJob::~BaseJob() d->reply->deleteLater(); } delete d; + qDebug() << "Job" << objectName() << " destroyed"; } ConnectionData* BaseJob::connection() const diff --git a/jobs/syncjob.cpp b/jobs/syncjob.cpp index 37f79298..3a7573bc 100644 --- a/jobs/syncjob.cpp +++ b/jobs/syncjob.cpp @@ -43,8 +43,10 @@ class SyncJob::Private QList<SyncRoomData> roomData; }; +static size_t jobId = 0; + SyncJob::SyncJob(ConnectionData* connection, QString since) - : BaseJob(connection, JobHttpType::GetJob, "SyncJob") + : BaseJob(connection, JobHttpType::GetJob, QString("SyncJob-%1").arg(++jobId)) , d(new Private) { d->since = since; @@ -133,6 +135,7 @@ void SyncJob::parseJson(const QJsonDocument& data) } emitResult(); + qDebug() << objectName() << ": processing complete"; } void SyncRoomData::EventList::fromJson(const QJsonObject& roomContents) |