diff options
author | Damien F. Katz <damien@apache.org> | 2008-09-13 17:32:46 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2008-09-13 17:32:46 +0000 |
commit | 58cd856811cf0e0238bcb14792711672ba687175 (patch) | |
tree | 50565ed1daa1a0966a301458f5dcb838828af478 /src/couchdb/couch_log.erl | |
parent | 48d2d8c0e97aa39eab674aea580a569d8aedd5c7 (diff) |
Changes and refactorings to couch_config
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@694989 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_log.erl')
-rw-r--r-- | src/couchdb/couch_log.erl | 8 |
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))}}. |