diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-12-14 23:03:05 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-12-14 23:03:05 +0000 |
commit | 77f70058713c9003c6507a53e6a3c3ac3ee964f4 (patch) | |
tree | 9101c65510e913e20f782e4e809e2fc450d6cdc7 | |
parent | 48c7dd5e90885b42371c5d0153b8f457925fb5cd (diff) |
Print the message that we failed to send to the syslog, to make some debugging possible
-rw-r--r-- | lib/win32/emu.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/win32/emu.cpp b/lib/win32/emu.cpp index 65c12b09..12d6a8b9 100644 --- a/lib/win32/emu.cpp +++ b/lib/win32/emu.cpp @@ -1567,16 +1567,14 @@ void syslog(int loglevel, const char *frmt, ...) if (!sHaveWarnedEventLogFull) { printf("Unable to send message to Event Log " - "(Event Log is full):\r\n"); - fflush(stdout); + "(Event Log is full): %s\r\n", buffer); sHaveWarnedEventLogFull = TRUE; } } else { - printf("Unable to send message to Event Log: %s:\r\n", - GetErrorMessage(winerrno).c_str()); - fflush(stdout); + printf("Unable to send message to Event Log: %s: %s\r\n", + GetErrorMessage(winerrno).c_str(), buffer); } } else |