mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +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 (toStdErr)
|
||||||
{
|
{
|
||||||
|
#if BEAST_MSVC
|
||||||
if (beast_isRunningUnderDebugger ())
|
if (beast_isRunningUnderDebugger ())
|
||||||
{
|
{
|
||||||
// Send it to the attached debugger's Output window
|
// 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);
|
Logger::outputDebugString (text);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
std::cerr << text << std::endl;
|
std::cerr << text << std::endl;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user