Better logging when file_recv_max_size is exceeded (#35914)

This gives more information on what to do when this limit is exceeded.
This commit is contained in:
Erik Johnson 2016-08-30 15:03:02 -05:00 committed by Nicole Thomas
parent 08e10f69eb
commit f4cdcc0d66

View file

@ -1075,9 +1075,10 @@ class AESFuncs(object):
if len(load['data']) + load.get('loc', 0) > file_recv_max_size:
log.error(
'Exceeding file_recv_max_size limit: {0}'.format(
file_recv_max_size
)
'file_recv_max_size limit of %d MB exceeded! %s will be '
'truncated. To successfully push this file, adjust '
'file_recv_max_size to an integer (in MB) large enough to '
'accommodate it.', file_recv_max_size, load['path']
)
return False
if 'tok' not in load: