diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-03-24 17:26:40 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-03-24 17:26:40 +0000 |
| commit | ddcff987f4d8a2dfa6d690d1081a55e0f10d41f2 (patch) | |
| tree | 99e8c9239bb89a5a02e5c09d731186d0101cecd2 /include | |
| parent | d2f1a2c3d22ba2de8739684b7811c5a248848a1c (diff) | |
| download | rabbitmq-server-git-ddcff987f4d8a2dfa6d690d1081a55e0f10d41f2.tar.gz | |
Have a completely separate counter for content size vs structural size.
Diffstat (limited to 'include')
| -rw-r--r-- | include/rabbit.hrl | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl index 3d2301efa8..8f836a0e5c 100644 --- a/include/rabbit.hrl +++ b/include/rabbit.hrl @@ -119,11 +119,12 @@ %% wrapping the message body). -define(MAX_MSG_SIZE, 2147383648). -%% Maximum size of any individual bit of a term to be logged. Feeds -%% into truncate:log_event/2. --define(LOG_TRUNC_SIZE, 100). - -%% Amount to decrease size every time we descend while truncating --define(LOG_TRUNC_DECR, 5). +%% 1) Maximum size of printable lists and binaries. +%% 2) Maximum size of any structural term. +%% 3) Amount to decrease 1) every time we descend while truncating. +%% 4) Amount to decrease 2) every time we descend while truncating. +%% +%% Whole thing feeds into truncate:log_event/2. +-define(LOG_TRUNC, {1000, 100, 50, 5}). -define(store_proc_name(N), rabbit_misc:store_proc_name(?MODULE, N)). |
