channelstream: log debug should be lazily evaulated.
This commit is contained in:
parent
891de4a613
commit
247e063960
1 changed files with 3 additions and 2 deletions
|
|
@ -105,8 +105,9 @@ def repo_validator(channel_name):
|
|||
'repository.read',
|
||||
'repository.write',
|
||||
'repository.admin')(repo_name)
|
||||
log.debug('permission check for {} channel '
|
||||
'resulted in {}'.format(repo_name, can_access))
|
||||
log.debug(
|
||||
'permission check for %s channel resulted in %s',
|
||||
repo_name, can_access)
|
||||
if can_access:
|
||||
return True
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue