summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_log.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb/couch_log.erl')
-rw-r--r--src/couchdb/couch_log.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/couchdb/couch_log.erl b/src/couchdb/couch_log.erl
index 69dabbcf..3d99ae1e 100644
--- a/src/couchdb/couch_log.erl
+++ b/src/couchdb/couch_log.erl
@@ -46,14 +46,14 @@ init([]) ->
% just stop if one of the config settings change. couch_server_sup
% will restart us and then we will pick up the new settings.
ok = couch_config:register(
- fun({"log", "file"}) ->
+ fun("log", "file") ->
?MODULE:stop();
- ({"log", "level"}) ->
+ ("log", "level") ->
?MODULE:stop()
end),
- Filename = couch_config:get({"log", "file"}, "couchdb.log"),
- Level = couch_config:get({"log", "level"},"info"),
+ Filename = couch_config:get("log", "file", "couchdb.log"),
+ Level = couch_config:get("log", "level", "info"),
{ok, Fd} = file:open(Filename, [append]),
{ok, {Fd, level_integer(list_to_atom(Level))}}.