diff options
author | Andreas Wilhelm <aw@emlix.com> | 2016-07-15 16:24:10 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2016-09-27 15:48:45 +0000 |
commit | cd78457c6d33bdd7c01fbcd78e50bc99e9c9acce (patch) | |
tree | 4571554b4a9401bea51cf42f0a1a55451bdb1970 /src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp | |
parent | bdb81d0bd13eb39e1b31b19e5c25112a532b2ffb (diff) |
qdbusxmlparser: Enabled error output
Implements behavior for the --verbose switch already specified
but never implemented. Without this switch you would have to rebuild
qdbusxml2cpp to see error output. Using -V will now produce error output such as:
dbus.parser: unknown token "" "Characters"
dbus.parser: Invalid D-BUS interface name 'com.qt-project.dbus' found while parsing introspection
dbus.parser: unknown token "" "Characters"
dbus.parser: skipping unknown element "method"
dbus.parser: xml error "Opening and ending tag mismatch." doc "..."
Task-number: QTBUG-34126
Change-Id: Ie5b7ec78007ddc305b1e7ddbffb1436920721c9c
Reviewed-by: Rolf Eike Beer <eb@emlix.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp')
-rw-r--r-- | src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp b/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp index e58f194b72..8dbb1bf350 100644 --- a/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp +++ b/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp @@ -32,6 +32,7 @@ #include <qdebug.h> #include <qfile.h> #include <qfileinfo.h> +#include <qloggingcategory.h> #include <qstring.h> #include <qstringlist.h> #include <qtextstream.h> @@ -1092,6 +1093,9 @@ int main(int argc, char **argv) } } + if (verbose) + QLoggingCategory::setFilterRules(QStringLiteral("dbus.parser.debug=true")); + QDBusIntrospection::Interfaces interfaces = readInput(); cleanInterfaces(interfaces); |