summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKari Oikarinen <kari.oikarinen@qt.io>2017-05-23 16:13:27 +0300
committerKari Oikarinen <kari.oikarinen@qt.io>2017-05-30 11:05:11 +0000
commit5df372df4d793e4fe92c5f8c3fe6a5a13ed7e33e (patch)
treefc89a9637d54959b98691732c8a3d23fd5a5bd94
parent9aa1318df1f042970f12f74fcf5f59fe14b40781 (diff)
Fix logging raw messages by default
The filter rule handling was not updated when the logging categories were renamed to include qdb. This caused the raw messages to be logged always. Amends 2750685b372b78330a9139a98d084bb7a60e367e. Change-Id: I43d37ea9f81f15efce4eefc4b04c74006ee72348 Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
-rw-r--r--qdb/server/hostserver.cpp4
-rw-r--r--qdbd/main.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/qdb/server/hostserver.cpp b/qdb/server/hostserver.cpp
index 8503738..1d2d11b 100644
--- a/qdb/server/hostserver.cpp
+++ b/qdb/server/hostserver.cpp
@@ -46,9 +46,9 @@ int execHostServer(const QCoreApplication &app, const QCommandLineParser &parser
QString filterRules;
if (!parser.isSet("debug-transport"))
- filterRules.append("transport=false\n");
+ filterRules.append("qdb.transport.debug=false\n");
if (!parser.isSet("debug-connection"))
- filterRules.append("connection=false\n");
+ filterRules.append("qdb.connection.debug=false\n");
QLoggingCategory::setFilterRules(filterRules);
InterruptSignalHandler signalHandler;
diff --git a/qdbd/main.cpp b/qdbd/main.cpp
index f58a855..64b55ab 100644
--- a/qdbd/main.cpp
+++ b/qdbd/main.cpp
@@ -76,10 +76,10 @@ int main(int argc, char *argv[])
QString filterRules;
if (!parser.isSet("debug-transport")) {
- filterRules.append("transport.debug=false\n");
+ filterRules.append("qdb.transport.debug=false\n");
}
if (!parser.isSet("debug-connection")) {
- filterRules.append("connection.debug=false\n");
+ filterRules.append("qdb.connection.debug=false\n");
}
QLoggingCategory::setFilterRules(filterRules);