diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-02-07 14:31:19 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2018-02-08 16:59:17 +0000 |
commit | fe5ba70e5571b75060e52973c5c96c77055a1794 (patch) | |
tree | 8de7a0a8672b988166bcea86db622d9f1211916e /LICENSE.PREVIEW.COMMERCIAL | |
parent | 7ec98134902de9afce51c66e8c252e004f5891b1 (diff) |
Prevent duplicated log output when using alternate logging sinks
3d02e75c07f was too quick, and didn't account for the fact that the
old code had early returns for each alternate logging sink, so when
removing the qt_logging_to_console() check, we would end up writing
debug output twice.
This is due to e.g. Qt Creator running the application without a
console, so qt_logging_to_console() returns false, so we end up
in e.g. the win_message_handler(), calling OutputDebugString,
but then we unconditionally print to stderr, which Creator
also reads, so we end up with duplicated log messages.
Change-Id: I91573828576608643477ae27d36d7e819f92985d
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'LICENSE.PREVIEW.COMMERCIAL')
0 files changed, 0 insertions, 0 deletions