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: else:
create_perm = CreateRepositoryPermission(namespace_name) create_perm = CreateRepositoryPermission(namespace_name)
if not create_perm.can(): if not create_perm.can():
logger.info('Attempt to create a new repo %s/%s with insufficient perms', namespace_name, logger.warning('Attempt to create a new repo %s/%s with insufficient perms', namespace_name,
repo_name) repo_name)
msg = 'You do not have permission to create repositories in namespace "%(namespace)s"' msg = 'You do not have permission to create repositories in namespace "%(namespace)s"'
abort(403, message=msg, issue='no-create-permission', namespace=namespace_name) abort(403, message=msg, issue='no-create-permission', namespace=namespace_name)

View file

@ -154,7 +154,6 @@ def _write_manifest(namespace_name, repo_name, manifest):
raise NameInvalid() raise NameInvalid()
if not manifest.layers: if not manifest.layers:
logger.info("manifest provided with no layers")
raise ManifestInvalid(detail={'message': 'manifest does not reference any layers'}) raise ManifestInvalid(detail={'message': 'manifest does not reference any layers'})
# Ensure all the blobs in the manifest exist. # Ensure all the blobs in the manifest exist.