summaryrefslogtreecommitdiffstats
path: root/qdb/server/echoservice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qdb/server/echoservice.cpp')
-rw-r--r--qdb/server/echoservice.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qdb/server/echoservice.cpp b/qdb/server/echoservice.cpp
index b69a7c2..0999b85 100644
--- a/qdb/server/echoservice.cpp
+++ b/qdb/server/echoservice.cpp
@@ -25,6 +25,9 @@
#include "libqdb/stream.h"
#include <QtCore/qdebug.h>
+#include <QtCore/qloggingcategory.h>
+
+Q_LOGGING_CATEGORY(echoC, "qdb.services.echo");
EchoService::EchoService(Connection *connection)
: m_connection{connection}
@@ -53,7 +56,7 @@ bool EchoService::hasStream() const
void EchoService::send(const QString &string)
{
if (!m_stream) {
- qCritical() << "No valid stream in EchoService when trying to send";
+ qCCritical(echoC) << "No valid stream in EchoService when trying to send";
return;
}
StreamPacket packet{string.toUtf8()};