History

logging groups for library/shared and interface

Seth Alves committed 11 years ago

Commit fb607e21 parent cd5245d30 files · +255 −172Browse files

Showing the changes to interface/src/ScriptsModel.cpp (1 of 30 files). Show all

Unified · Split

interface/src/ScriptsModel.cpp+3−2
@@ -19,6 +19,7 @@ · 18 unmodified lines
19 19
20#include "Application.h"20#include "Application.h"
21#include "Menu.h"21#include "Menu.h"
22#include "InterfaceLogging.h"
22 23
23#include "ScriptsModel.h"24#include "ScriptsModel.h"
24 25
@@ -181,7 +182,7 @@ void ScriptsModel::downloadFinished() { · 156 unmodified lines
181 if (!data.isEmpty()) {182 if (!data.isEmpty()) {
182 finished = parseXML(data);183 finished = parseXML(data);
183 } else {184 } else {
184 qDebug() << "Error: Received no data when loading remote scripts";185 qCDebug(interface) << "Error: Received no data when loading remote scripts";
185 }186 }
186 }187 }
187 188
@@ -230,7 +231,7 @@ bool ScriptsModel::parseXML(QByteArray xmlFile) { · 42 unmodified lines
230 231
231 // Error handling232 // Error handling
232 if (xml.hasError()) {233 if (xml.hasError()) {
233 qDebug() << "Error loading remote scripts: " << xml.errorString();234 qCDebug(interface) << "Error loading remote scripts: " << xml.errorString();
234 return true;235 return true;
235 }236 }
236 237