mirror of https://gitee.com/bigwinds/arangodb
additional output for debugging
This commit is contained in:
parent
cc821c6216
commit
96a5a5885c
|
@ -237,6 +237,7 @@ void Logger::log(char const* function, char const* file, long int line,
|
|||
// additionally log these errors to the debug output window in MSVC so
|
||||
// we can see them during development
|
||||
OutputDebugString(message.c_str());
|
||||
OutputDebugString("\r\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -352,6 +352,12 @@ bool ProgramOptions::fail(std::string const& message) {
|
|||
std::cerr << "Error while processing " << _context << ":" << std::endl;
|
||||
failNotice(message);
|
||||
std::cerr << std::endl;
|
||||
#ifdef _WIN32
|
||||
// additionally log these errors to the debug output window in MSVC so
|
||||
// we can see them during development
|
||||
OutputDebugString(message.c_str());
|
||||
OutputDebugString("\r\n");
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue