couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject couch-plugins commit: updated refs/heads/master to 0787a36
Date Wed, 24 Sep 2014 21:00:01 GMT
Repository: couchdb-couch-plugins
Updated Branches:
  refs/heads/master fbfa175be -> 0787a36e6


Replace more ?LOG_* with couch_log


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/commit/0787a36e
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/tree/0787a36e
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/diff/0787a36e

Branch: refs/heads/master
Commit: 0787a36e6e550414a93601f5c399fcff64e0d75c
Parents: fbfa175
Author: Alexander Shorin <kxepal@gmail.com>
Authored: Thu Sep 25 00:59:08 2014 +0400
Committer: Alexander Shorin <kxepal@gmail.com>
Committed: Thu Sep 25 00:59:08 2014 +0400

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch-plugins/blob/0787a36e/src/couch_plugins_httpd.erl
----------------------------------------------------------------------
diff --git a/src/couch_plugins_httpd.erl b/src/couch_plugins_httpd.erl
index 4dabbb4..90a09a5 100644
--- a/src/couch_plugins_httpd.erl
+++ b/src/couch_plugins_httpd.erl
@@ -32,7 +32,7 @@ handle_req(#httpd{method='POST'}=Req) ->
     ok ->
         couch_httpd:send_json(Req, 202, {[{ok, true}]});
     Error ->
-        ?LOG_DEBUG("Plugin Spec: ~p", [PluginSpec]),
+        couch_log:debug("Plugin Spec: ~p", [PluginSpec]),
         couch_httpd:send_error(Req, {bad_request, Error})
     end;
 % handles /_plugins/<pluginname>/<file>
@@ -45,7 +45,7 @@ handle_req(#httpd{method='GET',path_parts=[_, Name0 | Path0]}=Req) ->
     CouchDBVersion = couch_server:get_version(short),
     FullName = string:join([Name, PluginVersion, OTPRelease, CouchDBVersion], "-"),
     FullPath = filename:join([FullName, "priv", "www", string:join(Path, "/")]) ++ "/",
-    ?LOG_DEBUG("Serving ~p from ~p", [FullPath, plugin_dir()]),
+    couch_log:debug("Serving ~p from ~p", [FullPath, plugin_dir()]),
     couch_httpd:serve_file(Req, FullPath, plugin_dir());
 handle_req(Req) ->
     couch_httpd:send_method_not_allowed(Req, "POST").


Mime
View raw message