commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1003812 - /commons/proper/daemon/trunk/src/native/windows/src/log.c
Date Sat, 02 Oct 2010 15:25:49 GMT
Author: mturk
Date: Sat Oct  2 15:25:47 2010
New Revision: 1003812

URL: http://svn.apache.org/viewvc?rev=1003812&view=rev
Log:
Display error in case LogPath is invalid

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=1003812&r1=1003811&r2=1003812&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/src/log.c (original)
+++ commons/proper/daemon/trunk/src/native/windows/src/log.c Sat Oct  2 15:25:47 2010
@@ -153,6 +153,8 @@ HANDLE apxLogOpen(
     if (h->hFile == INVALID_HANDLE_VALUE) {
         /* Make sure we write somewhere */
         h->hFile = GetStdHandle(STD_ERROR_HANDLE);
+        apxDisplayError(FALSE, NULL, 0,
+                        "Unable to create logger at '%S'\n", sPath);        
     }
     /* Set this file as system log file */
     if (!_st_sys_loghandle)



Mime
View raw message