mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
08e10f69eb
commit
f4cdcc0d66
1 changed files with 4 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue