diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2014-05-22 16:12:15 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2014-05-22 16:12:15 +0100 |
| commit | 561559eba20b8b91f5c5dce5d84fab34dcf64568 (patch) | |
| tree | 992a456aaa68b120443a0fecc91d0d19d773d190 /include/rabbit.hrl | |
| parent | 7713d27e5d00e3db79ee4c781cf147f9cb6d4036 (diff) | |
| download | rabbitmq-server-git-561559eba20b8b91f5c5dce5d84fab34dcf64568.tar.gz | |
Don't truncate "small" things at all.
Diffstat (limited to 'include/rabbit.hrl')
| -rw-r--r-- | include/rabbit.hrl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl index 44f0931eef..5ac3197ed9 100644 --- a/include/rabbit.hrl +++ b/include/rabbit.hrl @@ -119,12 +119,15 @@ %% wrapping the message body). -define(MAX_MSG_SIZE, 2147383648). +%% First number is maximum size in bytes before we start to +%% truncate. The following 4-tuple is: +%% %% 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, {2000, 100, 50, 5}). +-define(LOG_TRUNC, {100000, {2000, 100, 50, 5}}). -define(store_proc_name(N), rabbit_misc:store_proc_name(?MODULE, N)). |
