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 0c2f9df7..69dabbcf 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))}}.