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