Fix log levels in registry
This commit is contained in:
parent
f05982dc7c
commit
c1cff32c1e
2 changed files with 2 additions and 3 deletions
|
@ -184,8 +184,8 @@ def create_repository(namespace_name, repo_name):
|
|||
else:
|
||||
create_perm = CreateRepositoryPermission(namespace_name)
|
||||
if not create_perm.can():
|
||||
logger.info('Attempt to create a new repo %s/%s with insufficient perms', namespace_name,
|
||||
repo_name)
|
||||
logger.warning('Attempt to create a new repo %s/%s with insufficient perms', namespace_name,
|
||||
repo_name)
|
||||
msg = 'You do not have permission to create repositories in namespace "%(namespace)s"'
|
||||
abort(403, message=msg, issue='no-create-permission', namespace=namespace_name)
|
||||
|
||||
|
|
Reference in a new issue