From cc651c15b59ada9ad0a3c31b2ea61681a279586b Mon Sep 17 00:00:00 2001 From: Alex Dupre Date: Wed, 3 Jul 2013 10:02:58 +0200 Subject: [PATCH] Logging to debugger is useful only on Windows. --- modules/ripple_basics/utility/ripple_Log.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ripple_basics/utility/ripple_Log.cpp b/modules/ripple_basics/utility/ripple_Log.cpp index 8ed47cd61e..48eba348d3 100644 --- a/modules/ripple_basics/utility/ripple_Log.cpp +++ b/modules/ripple_basics/utility/ripple_Log.cpp @@ -155,6 +155,7 @@ void Log::print (std::string const& text, bool toStdErr) if (toStdErr) { +#if BEAST_MSVC if (beast_isRunningUnderDebugger ()) { // Send it to the attached debugger's Output window @@ -162,6 +163,7 @@ void Log::print (std::string const& text, bool toStdErr) Logger::outputDebugString (text); } else +#endif { std::cerr << text << std::endl; }