Change API to function per level
diff --git a/src/config.erl b/src/config.erl
index c0a4c6b..20640bc 100644
--- a/src/config.erl
+++ b/src/config.erl
@@ -110,7 +110,7 @@
{reply, Resp, Config};
handle_call({set, Sec, Key, Val, Persist}, _From, Config) ->
true = ets:insert(?MODULE, {{Sec, Key}, Val}),
- couch_log:log(notice, "~p: [~s] ~s set to ~s", [?MODULE, Sec, Key, Val]),
+ couch_log:notice("~p: [~s] ~s set to ~s", [?MODULE, Sec, Key, Val]),
case {Persist, Config#config.write_filename} of
{true, undefined} ->
ok;
@@ -124,7 +124,7 @@
{reply, ok, Config};
handle_call({delete, Sec, Key, Persist}, _From, Config) ->
true = ets:delete(?MODULE, {Sec,Key}),
- couch_log:log(notice, "~p: [~s] ~s deleted", [?MODULE, Sec, Key]),
+ couch_log:notice("~p: [~s] ~s deleted", [?MODULE, Sec, Key]),
case {Persist, Config#config.write_filename} of
{true, undefined} ->
ok;
@@ -167,7 +167,7 @@
{noreply, State}.
handle_info(Info, State) ->
- couch_log:log(error, "config:handle_info Info: ~p~n", [Info]),
+ couch_log:error("config:handle_info Info: ~p~n", [Info]),
{noreply, State}.
code_change(_OldVsn, State, _Extra) ->
@@ -183,7 +183,7 @@
{error, enoent} ->
Fmt = "Couldn't find server configuration file ~s.",
Msg = list_to_binary(io_lib:format(Fmt, [IniFilename])),
- couch_log:log(error, "~s~n", [Msg]),
+ couch_log:error("~s~n", [Msg]),
throw({startup_error, Msg})
end,