From 7e15f82aebf79ad95794c4a5dc7d2929e48df4ff Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 30 May 2018 15:20:43 +0900 Subject: BaseJob::setStatus: Don't try to remove access token if it's empty Closes #210. --- lib/jobs/basejob.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/jobs') diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp index a8fc0adc..6ed9862f 100644 --- a/lib/jobs/basejob.cpp +++ b/lib/jobs/basejob.cpp @@ -576,7 +576,8 @@ void BaseJob::setStatus(Status s) if (d->status == s) return; - s.message.replace(d->connection->accessToken(), "(REDACTED)"); + if (!d->connection->accessToken().isEmpty()) + s.message.replace(d->connection->accessToken(), "(REDACTED)"); if (!s.good()) qCWarning(d->logCat) << this << "status" << s; d->status = std::move(s); -- cgit v1.2.3