You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2010/11/29 12:41:41 UTC
svn commit: r1040073 -
/commons/proper/daemon/trunk/src/native/windows/src/log.c
Author: mturk
Date: Mon Nov 29 11:41:41 2010
New Revision: 1040073
URL: http://svn.apache.org/viewvc?rev=1040073&view=rev
Log:
In case of error, always print system error description
Modified:
commons/proper/daemon/trunk/src/native/windows/src/log.c
Modified: commons/proper/daemon/trunk/src/native/windows/src/log.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/src/log.c?rev=1040073&r1=1040072&r2=1040073&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/src/log.c (original)
+++ commons/proper/daemon/trunk/src/native/windows/src/log.c Mon Nov 29 11:41:41 2010
@@ -351,6 +351,11 @@ apxLogWrite(
}
/* Restore the last Error code */
SetLastError(err);
+ if (szFormat && err != 0 && dwLevel == APXLOG_LEVEL_ERROR) {
+ /* Print the System error description
+ */
+ apxLogWrite(hFile, dwLevel, bTimeStamp, szFile, dwLine, NULL);
+ }
return len;
}