aboutsummaryrefslogtreecommitdiffstats
path: root/logger.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-15 19:35:25 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-15 19:35:25 +0000
commit611730d962652f1ba34bb51e0dbf36a3f39f7e00 (patch)
tree7497a91d7bd2360c1522f2b5195654963beec59d /logger.c
parent5999f98b1b782acb45c7cc110373b864fe45e27f (diff)
Allow Asterisk to start even when eventlog is turned off (bug #4938)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6337 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'logger.c')
-rwxr-xr-xlogger.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/logger.c b/logger.c
index cc55f1e77..8e5cdbf16 100755
--- 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;
}