Metadata above max size should be a warning.

This commit is contained in:
Marius van den Beek
2016-03-16 11:51:28 +01:00
parent 18a4edc1ca
commit 5c45746e42
+1 -1
View File
@@ -271,7 +271,7 @@ class MetadataType( JSONType ):
sz = total_size(v)
if sz > app.app.config.max_metadata_value_size:
del value[k]
log.error('Refusing to bind metadata key %s due to size (%s)' % (k, sz))
log.warning('Refusing to bind metadata key %s due to size (%s)' % (k, sz))
value = json_encoder.encode(value)
return value