Change existing/removed permission log message
@@ -166,8 +166,8 @@ class PermissionHandler(object):
(is_group and len(users) == 1 and len(groups) == 1):
self._rem_perm_impl("*", False)
else:
- LOG.error("Permission '{0}' adding for {1} '{2}' failed!"
- .format(self._perm_name,
+ LOG.info("Permission '{0}' already added for {1} '{2}'!".format(
+ self._perm_name,
'group' if is_group else 'user',
auth_name))
@@ -193,8 +193,8 @@ class PermissionHandler(object):
if len(users) == 0 and len(groups) == 0:
self._add_perm_impl("*", False)
else:
- LOG.error("Permission '{0}' removal from {1} '{2}' failed!"
- .format(self._perm_name,
+ LOG.info("Permission '{0}' already removed from {1} '{2}'!".format(
+ self._perm_name,
'group' if is_group else 'user',
auth_name))
