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 22:44:05 UTC

git commit: Use couch_log instead of ?LOG_*

Repository: couchdb-cassim
Updated Branches:
  refs/heads/master f8cd12a8a -> 285afe130


Use couch_log instead of ?LOG_*


Project: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/commit/285afe13
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/tree/285afe13
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-cassim/diff/285afe13

Branch: refs/heads/master
Commit: 285afe13096ffe4e2971a02b5f9e957a905bf0d0
Parents: f8cd12a
Author: Alexander Shorin <kx...@apache.org>
Authored: Wed Sep 24 19:26:15 2014 +0400
Committer: Alexander Shorin <kx...@apache.org>
Committed: Thu Sep 25 00:43:52 2014 +0400

----------------------------------------------------------------------
 src/cassim_security.erl | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-cassim/blob/285afe13/src/cassim_security.erl
----------------------------------------------------------------------
diff --git a/src/cassim_security.erl b/src/cassim_security.erl
index f000f01..c427758 100644
--- a/src/cassim_security.erl
+++ b/src/cassim_security.erl
@@ -163,7 +163,9 @@ check_is_member(#user_ctx{name=Name,roles=Roles}=UserCtx, SecProps) ->
             WithAdminRoles -> % same list, not an reader role
                 case ReaderNames -- [Name] of
                 ReaderNames -> % same names, not a reader
-                    ?LOG_DEBUG("Not a reader: UserCtx ~p vs Names ~p Roles ~p",[UserCtx, ReaderNames, WithAdminRoles]),
+                    couch_log:debug("Not a reader: UserCtx ~p "
+                                    " vs Names ~p Roles ~p",
+                                    [UserCtx, ReaderNames, WithAdminRoles]),
                     throw({unauthorized, <<"You are not authorized to access this db.">>});
                 _ ->
                     ok