summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/base/serverinfo.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-11-03 11:08:18 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-11-04 23:32:52 +0100
commit4d2ce949b3b41f8bf0af446fa20205ddd229e579 (patch)
tree01fa19471d9831b296bea5d7049f765e38b30bbb /rbutil/rbutilqt/base/serverinfo.cpp
parent335ec75d60bba82f23fc47b20f9390e0cba9c9c5 (diff)
downloadrockbox-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/serverinfo.cpp')
-rw-r--r--rbutil/rbutilqt/base/serverinfo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/base/serverinfo.cpp b/rbutil/rbutilqt/base/serverinfo.cpp
index 8d91309e66..4773c1ee71 100644
--- a/rbutil/rbutilqt/base/serverinfo.cpp
+++ b/rbutil/rbutilqt/base/serverinfo.cpp
@@ -19,6 +19,7 @@
19#include "serverinfo.h" 19#include "serverinfo.h"
20#include "rbsettings.h" 20#include "rbsettings.h"
21#include "systeminfo.h" 21#include "systeminfo.h"
22#include "Logger.h"
22 23
23#if defined(Q_OS_LINUX) 24#if defined(Q_OS_LINUX)
24#include <unistd.h> 25#include <unistd.h>
@@ -181,7 +182,7 @@ QVariant ServerInfo::value(enum ServerInfos info)
181 182
182 QString s = ServerInfoList[i].name; 183 QString s = ServerInfoList[i].name;
183 s.replace(":platform:", RbSettings::value(RbSettings::CurrentPlatform).toString()); 184 s.replace(":platform:", RbSettings::value(RbSettings::CurrentPlatform).toString());
184 qDebug() << "[ServerInfo] GET:" << s << serverInfos.value(s, ServerInfoList[i].def).toString(); 185 LOG_INFO() << "GET:" << s << serverInfos.value(s, ServerInfoList[i].def).toString();
185 return serverInfos.value(s, ServerInfoList[i].def); 186 return serverInfos.value(s, ServerInfoList[i].def);
186} 187}
187 188
@@ -201,7 +202,7 @@ void ServerInfo::setPlatformValue(QString platform, enum ServerInfos info, QVari
201 QString s = ServerInfoList[i].name; 202 QString s = ServerInfoList[i].name;
202 s.replace(":platform:", platform); 203 s.replace(":platform:", platform);
203 serverInfos.insert(s, value); 204 serverInfos.insert(s, value);
204 qDebug() << "[ServerInfo] SET:" << s << serverInfos.value(s).toString(); 205 LOG_INFO() << "SET:" << s << serverInfos.value(s).toString();
205} 206}
206 207
207QVariant ServerInfo::platformValue(QString platform, enum ServerInfos info) 208QVariant ServerInfo::platformValue(QString platform, enum ServerInfos info)
@@ -215,7 +216,7 @@ QVariant ServerInfo::platformValue(QString platform, enum ServerInfos info)
215 s.replace(":platform:", platform); 216 s.replace(":platform:", platform);
216 QString d = ServerInfoList[i].def; 217 QString d = ServerInfoList[i].def;
217 d.replace(":platform:", platform); 218 d.replace(":platform:", platform);
218 qDebug() << "[ServerInfo] GET:" << s << serverInfos.value(s, d).toString(); 219 LOG_INFO() << "GET:" << s << serverInfos.value(s, d).toString();
219 return serverInfos.value(s, d); 220 return serverInfos.value(s, d);
220} 221}
221 222