mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 06:55:50 +00:00
Logging to debugger is useful only on Windows.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user