commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1040073 - /commons/proper/daemon/trunk/src/native/windows/src/log.c
Date Mon, 29 Nov 2010 11:41:41 GMT
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;
 }
 



Mime
View raw message