diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-07-16 20:09:42 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-07-16 22:09:30 +0200 |
commit | e9dace0e22a2aa3727bc842a30b4ad504029c0fc (patch) | |
tree | f406ec377baa132f68233c0d7223fd6f839a8912 /lib/jobs/mediathumbnailjob.cpp | |
parent | 0cb9a462945b1a9dd30979e9b97415dff16816e0 (diff) | |
download | libquotient-e9dace0e22a2aa3727bc842a30b4ad504029c0fc.tar.gz libquotient-e9dace0e22a2aa3727bc842a30b4ad504029c0fc.zip |
Log thumbnail requests in their own category
As pointed out by one of users, thumbnail requests produce quite a bit
of logging traffic, so it's better to manage them separately.
Diffstat (limited to 'lib/jobs/mediathumbnailjob.cpp')
-rw-r--r-- | lib/jobs/mediathumbnailjob.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/jobs/mediathumbnailjob.cpp b/lib/jobs/mediathumbnailjob.cpp index 7dbf4ab3..6fe8ef26 100644 --- a/lib/jobs/mediathumbnailjob.cpp +++ b/lib/jobs/mediathumbnailjob.cpp @@ -17,13 +17,17 @@ MediaThumbnailJob::MediaThumbnailJob(const QString& serverName, const QString& mediaId, QSize requestedSize) : GetContentThumbnailJob(serverName, mediaId, requestedSize.width(), requestedSize.height(), "scale") -{} +{ + setLoggingCategory(THUMBNAILJOB); +} MediaThumbnailJob::MediaThumbnailJob(const QUrl& mxcUri, QSize requestedSize) : MediaThumbnailJob(mxcUri.authority(), mxcUri.path().mid(1), // sans leading '/' requestedSize) -{} +{ + setLoggingCategory(THUMBNAILJOB); +} QImage MediaThumbnailJob::thumbnail() const { return _thumbnail; } |