couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject git commit: Use couch_log instead of ?LOG_*
Date Wed, 24 Sep 2014 20:44:05 GMT
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 <kxepal@apache.org>
Authored: Wed Sep 24 19:26:15 2014 +0400
Committer: Alexander Shorin <kxepal@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


Mime
View raw message