summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-18 14:29:08 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-18 14:29:08 +0200
commit48f21e188360f4fd4d0fbbde2e4a22d5f176b7e6 (patch)
treebf64168b26eaceb3a00f380dcd6c9d19e5f06c85 /common
parent4c24fc9c909bfb9ccc32f3691450b117292c9b1d (diff)
downloadsink-48f21e188360f4fd4d0fbbde2e4a22d5f176b7e6.tar.gz
sink-48f21e188360f4fd4d0fbbde2e4a22d5f176b7e6.zip
sDebugStream now supports debug messages on windows.
Diffstat (limited to 'common')
-rw-r--r--common/log.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/common/log.cpp b/common/log.cpp
index cf2871e..b271f6e 100644
--- a/common/log.cpp
+++ b/common/log.cpp
@@ -447,17 +447,10 @@ QDebug Sink::Log::debugStream(DebugLevel debugLevel, int line, const char *file,
447 } 447 }
448 output += ":"; 448 output += ":";
449 449
450#ifdef Q_OS_WIN
451 //If we print to std::cout we won't see the messages in DebugView
452 QDebug debug(QtDebugMsg);
453#else
454 if (sDebugStream.isDestroyed()) { 450 if (sDebugStream.isDestroyed()) {
455 return QDebug{QtDebugMsg}; 451 return QDebug{QtDebugMsg};
456 } 452 }
457 QDebug debug(sDebugStream); 453 QDebug debug(sDebugStream);
458#endif
459
460 debug.noquote().nospace() << output; 454 debug.noquote().nospace() << output;
461
462 return debug.space().quote(); 455 return debug.space().quote();
463} 456}