From 77f70058713c9003c6507a53e6a3c3ac3ee964f4 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 14 Dec 2015 23:03:05 +0000 Subject: Print the message that we failed to send to the syslog, to make some debugging possible --- lib/win32/emu.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/win32') 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 -- cgit v1.2.3