diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-01-25 17:10:14 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-01-28 08:04:49 +0000 |
commit | 15525d2a309a6028d548797bc777e38905f36c46 (patch) | |
tree | 43ff55c17a46314f3fcbcca51c625f918dda57dc /src/qml/debugger | |
parent | 784a55a15ddc65b59cc4709e54453238438eae48 (diff) |
Tooling: Use fprintf rather than qDebug() for debug warning
This warning is generated from a statically called ctor. At that point
the system facilities to run QMessageLogger may not be in place, yet. In
addition, we actually don't want the message to go through the regular
QMessageLogger redirection and possibly filtering. The message should
always be shown.
Change-Id: Ia89822b26e04591fe309581c3c84a4c7e54759a6
Fixes: QTBUG-73217
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/debugger')
-rw-r--r-- | src/qml/debugger/qqmldebug.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/debugger/qqmldebug.cpp b/src/qml/debugger/qqmldebug.cpp index 6246fb4207..6532576e03 100644 --- a/src/qml/debugger/qqmldebug.cpp +++ b/src/qml/debugger/qqmldebug.cpp @@ -44,16 +44,16 @@ #include <private/qqmlengine_p.h> #include <private/qv4compileddata_p.h> +#include <cstdio> + QT_REQUIRE_CONFIG(qml_debug); QT_BEGIN_NAMESPACE QQmlDebuggingEnabler::QQmlDebuggingEnabler(bool printWarning) { - if (!QQmlEnginePrivate::qml_debugging_enabled - && printWarning) { - qDebug("QML debugging is enabled. Only use this in a safe environment."); - } + if (!QQmlEnginePrivate::qml_debugging_enabled && printWarning) + fprintf(stderr, "QML debugging is enabled. Only use this in a safe environment.\n"); QQmlEnginePrivate::qml_debugging_enabled = true; } |