aboutsummaryrefslogtreecommitdiff
path: root/src/ldapsp_app.erl
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-02-16 08:07:41 +0100
committerGuido Günther <agx@sigxcpu.org>2017-02-16 08:07:41 +0100
commit4b9ed81166b40e3c2690f7505348bfc889eaf272 (patch)
treef9b4217a17e9d4df99cf4860fc1f12cccda68953 /src/ldapsp_app.erl
parenteefbd57f8be7cd5263c1e4f4a16976beafc9dcba (diff)
Add our own error log handler
This handler is logrotate friendly as it does not add any datetime into the filename and the log file is recreated if moved.
Diffstat (limited to 'src/ldapsp_app.erl')
-rw-r--r--src/ldapsp_app.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldapsp_app.erl b/src/ldapsp_app.erl
index cdc6a22..60cde79 100644
--- a/src/ldapsp_app.erl
+++ b/src/ldapsp_app.erl
@@ -26,7 +26,7 @@
start(_Type, _StartArgs) ->
LogHandlers = [{webmachine_access_log_handler, ["priv/log"]},
- {webmachine_error_log_handler, ["priv/log"]}],
+ {ldapsp_error_log_handler, ["priv/log"]}],
application:set_env(webmachine, log_handlers, LogHandlers),
% Evil hack so we reprocess the app config
webmachine:stop(),