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/10/02 17:25:49 UTC
svn commit: r1003812 -
/commons/proper/daemon/trunk/src/native/windows/src/log.c
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)