Fix log levels in registry

This commit is contained in:
Joseph Schorr 2018-01-04 13:07:11 -05:00
parent f05982dc7c
commit c1cff32c1e
2 changed files with 2 additions and 3 deletions

View file

@ -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)