diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-03 11:08:18 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2013-11-04 23:32:52 +0100 |
commit | 4d2ce949b3b41f8bf0af446fa20205ddd229e579 (patch) | |
tree | 01fa19471d9831b296bea5d7049f765e38b30bbb /rbutil/rbutilqt/base/httpget.h | |
parent | 335ec75d60bba82f23fc47b20f9390e0cba9c9c5 (diff) | |
download | rockbox-4d2ce949b3b41f8bf0af446fa20205ddd229e579.tar.gz rockbox-4d2ce949b3b41f8bf0af446fa20205ddd229e579.zip |
Use cutelogger for Rockbox Utility internal trace.
Change tracing from qDebug() to use cutelogger, which is available under the
LGPL2.1. This allows to automatically add filename and line number to the log,
and also provides multiple log levels.
Change-Id: I5dbdaf902ba54ea99f07ae10a07467c52fdac910
Diffstat (limited to 'rbutil/rbutilqt/base/httpget.h')
-rw-r--r-- | rbutil/rbutilqt/base/httpget.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/base/httpget.h b/rbutil/rbutilqt/base/httpget.h index 2f6448a40d..8c62157e5f 100644 --- a/rbutil/rbutilqt/base/httpget.h +++ b/rbutil/rbutilqt/base/httpget.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <QtCore> | 25 | #include <QtCore> |
26 | #include <QtNetwork> | 26 | #include <QtNetwork> |
27 | #include <QNetworkAccessManager> | 27 | #include <QNetworkAccessManager> |
28 | #include "Logger.h" | ||
28 | 29 | ||
29 | class HttpGet : public QObject | 30 | class HttpGet : public QObject |
30 | { | 31 | { |
@@ -49,13 +50,13 @@ class HttpGet : public QObject | |||
49 | //< set global cache path | 50 | //< set global cache path |
50 | static void setGlobalCache(const QDir& d) | 51 | static void setGlobalCache(const QDir& d) |
51 | { | 52 | { |
52 | qDebug() << "[HttpGet] Global cache set to" << d.absolutePath(); | 53 | LOG_INFO() << "Global cache set to" << d.absolutePath(); |
53 | m_globalCache = d; | 54 | m_globalCache = d; |
54 | } | 55 | } |
55 | //< set global proxy value | 56 | //< set global proxy value |
56 | static void setGlobalProxy(const QUrl& p) | 57 | static void setGlobalProxy(const QUrl& p) |
57 | { | 58 | { |
58 | qDebug() << "[HttpGet] setting global proxy" << p; | 59 | LOG_INFO() << "setting global proxy" << p; |
59 | if(!p.isValid() || p.isEmpty()) { | 60 | if(!p.isValid() || p.isEmpty()) { |
60 | HttpGet::m_globalProxy.setType(QNetworkProxy::NoProxy); | 61 | HttpGet::m_globalProxy.setType(QNetworkProxy::NoProxy); |
61 | } | 62 | } |