You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/02/13 00:24:05 UTC

config commit: updated refs/heads/1843-feature-bigcouch to 99b6728

Updated Branches:
  refs/heads/1843-feature-bigcouch e42fb5577 -> 99b67284d


Change API to function per level


Project: http://git-wip-us.apache.org/repos/asf/couchdb-config/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-config/commit/99b67284
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-config/tree/99b67284
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-config/diff/99b67284

Branch: refs/heads/1843-feature-bigcouch
Commit: 99b67284dbb90a2f980060e734c10528314e813d
Parents: e42fb55
Author: Robert Newson <rn...@apache.org>
Authored: Wed Feb 12 23:23:55 2014 +0000
Committer: Robert Newson <rn...@apache.org>
Committed: Wed Feb 12 23:23:55 2014 +0000

----------------------------------------------------------------------
 src/config.erl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-config/blob/99b67284/src/config.erl
----------------------------------------------------------------------
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 @@ handle_call(all, _From, Config) ->
     {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 @@ handle_call({set, Sec, Key, Val, Persist}, _From, Config) ->
     {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 @@ handle_cast(_Msg, State) ->
     {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 @@ parse_ini_file(IniFile) ->
         {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,