[Freeswitch-branches] [commit] r5189 - freeswitch/branches/anthonyl/fs-branch/src/mod/loggers/mod_log2file

Freeswitch SVN anthonyl at freeswitch.org
Tue May 15 23:45:27 EDT 2007


Author: anthonyl
Date: Tue May 15 23:45:27 2007
New Revision: 5189

Modified:
   freeswitch/branches/anthonyl/fs-branch/src/mod/loggers/mod_log2file/mod_log2file.c

Log:
get rid of the old logic in log2file_openlogfile


Modified: freeswitch/branches/anthonyl/fs-branch/src/mod/loggers/mod_log2file/mod_log2file.c
==============================================================================
--- freeswitch/branches/anthonyl/fs-branch/src/mod/loggers/mod_log2file/mod_log2file.c	(original)
+++ freeswitch/branches/anthonyl/fs-branch/src/mod/loggers/mod_log2file/mod_log2file.c	Tue May 15 23:45:27 2007
@@ -168,19 +168,11 @@
     apr_status_t stat;
 
     stat = apr_file_open(&afd, globals.logfile,
-                         APR_READ | APR_WRITE | APR_APPEND, NULL, NULL);
+                         APR_CREATE| APR_READ | APR_WRITE | APR_APPEND, NULL, NULL);
 
     if (stat != APR_SUCCESS) {
         return SWITCH_STATUS_FALSE;
     }
-    
-    /* locate where we want to log file to be */
-    fd = fopen(globals.logfile, "a+");    
-
-    if (!fd) {
-        return SWITCH_STATUS_FALSE;
-    }
-
     globals.log_afd = afd;
     mod_log2file_check();
     return SWITCH_STATUS_SUCCESS;



More information about the Freeswitch-branches mailing list