Allow Asterisk to start even when eventlog is turned off (bug #4938)
authorMark Spencer <markster@digium.com>
Mon, 15 Aug 2005 19:35:25 +0000 (19:35 +0000)
committerMark Spencer <markster@digium.com>
Mon, 15 Aug 2005 19:35:25 +0000 (19:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6337 65c4cc65-6c06-0410-ace0-fbb531ad65f3

logger.c

index cc55f1e..8e5cdbf 100755 (executable)
--- a/logger.c
+++ b/logger.c
@@ -452,7 +452,8 @@ int reload_logger(int rotate)
                        return 0;
                } else 
                        ast_log(LOG_ERROR, "Unable to create event log: %s\n", strerror(errno));
-       }
+       } else 
+               return 0;
        return -1;
 }
 
@@ -584,7 +585,8 @@ int init_logger(void)
                        return 0;
                } else 
                        ast_log(LOG_ERROR, "Unable to create event log: %s\n", strerror(errno));
-       }
+       } else
+               return 0;
 
        return -1;
 }