summaryrefslogtreecommitdiffstats
path: root/src/fbgui
diff options
context:
space:
mode:
authorJonathan Bauer2012-01-31 13:59:38 +0100
committerJonathan Bauer2012-01-31 13:59:38 +0100
commit4da044c24e0e4d7fa936c40185eb893f5d32bf47 (patch)
tree0678d5baddb72a8c35492d1b13ecf2fc2fe3ace0 /src/fbgui
parentdebug console fixed, now basicly tail on logfile (diff)
downloadfbgui-4da044c24e0e4d7fa936c40185eb893f5d32bf47.tar.gz
fbgui-4da044c24e0e4d7fa936c40185eb893f5d32bf47.tar.xz
fbgui-4da044c24e0e4d7fa936c40185eb893f5d32bf47.zip
fix for empty log messages
Diffstat (limited to 'src/fbgui')
-rw-r--r--src/fbgui/networkdiscovery.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fbgui/networkdiscovery.cpp b/src/fbgui/networkdiscovery.cpp
index 49aa148..0198086 100644
--- a/src/fbgui/networkdiscovery.cpp
+++ b/src/fbgui/networkdiscovery.cpp
@@ -553,7 +553,7 @@ void NetworkDiscovery::handleNewInput(QLocalSocket * client) {
QString data(client->readLine());
data = data.trimmed();
- LOG4CXX_DEBUG(ndcLogger, data);
+ if (!data.isEmpty()) LOG4CXX_DEBUG(ndcLogger, data);
QStringList lines = data.split("\n");
for (int i = 0; i < lines.length(); i++) {
@@ -621,6 +621,7 @@ void NetworkDiscovery::handleNewInputLine(QLocalSocket * client, QString logMsg)
_ifNameToClient.insert(interface, client);
}
+
// st states
// #define LOG_EMERG 0 /* system is unusable */