History

move Logging to LogHandler

Stephen Birarda committed 12 years ago

Commit d3bbd251 parent 2711ff214 files · +60 −54Browse files

Showing the changes to libraries/networking/src/ThreadedAssignment.cpp (1 of 14 files). Show all

Unified · Split

libraries/networking/src/ThreadedAssignment.cpp+3−2
@@ -14,7 +14,8 @@ · 13 unmodified lines
14#include <QtCore/QThread>14#include <QtCore/QThread>
15#include <QtCore/QTimer>15#include <QtCore/QTimer>
16 16
17#include "Logging.h"17#include <LogHandler.h>
18
18#include "ThreadedAssignment.h"19#include "ThreadedAssignment.h"
19 20
20ThreadedAssignment::ThreadedAssignment(const QByteArray& packet) :21ThreadedAssignment::ThreadedAssignment(const QByteArray& packet) :
@@ -54,7 +55,7 @@ void ThreadedAssignment::setFinished(bool isFinished) { · 33 unmodified lines
54 55
55void ThreadedAssignment::commonInit(const QString& targetName, NodeType_t nodeType, bool shouldSendStats) {56void ThreadedAssignment::commonInit(const QString& targetName, NodeType_t nodeType, bool shouldSendStats) {
56 // change the logging target name while the assignment is running57 // change the logging target name while the assignment is running
57 Logging::setTargetName(targetName);58 LogHandler::getInstance().setTargetName(targetName);
58 59
59 NodeList* nodeList = NodeList::getInstance();60 NodeList* nodeList = NodeList::getInstance();
60 nodeList->setOwnerType(nodeType);61 nodeList->setOwnerType(nodeType);