You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2014/09/24 23:00:01 UTC
couch-plugins commit: updated refs/heads/master to 0787a36
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 <kx...@gmail.com>
Authored: Thu Sep 25 00:59:08 2014 +0400
Committer: Alexander Shorin <kx...@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").