diff options
author | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2020-04-20 21:42:15 +0300 |
---|---|---|
committer | Vladislavs Sokurenko <vladislavs.sokurenko@zabbix.com> | 2020-04-20 21:42:15 +0300 |
commit | c90ae8ca249785a0a91fc2c3589f5d478cbbe8d0 (patch) | |
tree | 87d2928eb3828ed6d5656f3c47bee14ec62718be | |
parent | 5091165d69976217cd73a34c081e77c13187672d (diff) |
........S. [ZBXNEXT-5877] limit log size
-rw-r--r-- | src/libs/zbxembed/zabbix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/zbxembed/zabbix.c b/src/libs/zbxembed/zabbix.c index 147f7a0d340..d641dc33e3a 100644 --- a/src/libs/zbxembed/zabbix.c +++ b/src/libs/zbxembed/zabbix.c @@ -93,7 +93,7 @@ static duk_ret_t es_zabbix_log(duk_context *ctx) if (ZBX_ES_LOG_MEMORY_LIMIT < env->json->buffer_size) /* approximate limit */ { return duk_error(ctx, DUK_RET_TYPE_ERROR, "log exceeds the maximum size " ZBX_FS_UI64 " bytes.", - ZBX_MAX_RECV_DATA_SIZE); + ZBX_ES_LOG_MEMORY_LIMIT); } return 0; |