diff options
author | Jan Lehnardt <jan@apache.org> | 2008-08-30 14:27:01 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2008-08-30 14:27:01 +0000 |
commit | 3751c13253370c72735fb070588fa8d99db5e81a (patch) | |
tree | 650691eddcc992946b87a1c7d4faf41fdfacc2b4 /src/couchdb/couch_log.erl | |
parent | bef662fcc96e7b578aac40154e7767de30e9a1c0 (diff) |
- Rename configuration options and sections to allow for a nicer .ini file and HTTP API calls.
- Enable .ini parser to read variable assignments with spaces around the '='-sign.
- Remove inadequate comment.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690513 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 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))}}. |