summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-03-24 17:26:40 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-03-24 17:26:40 +0000
commit77f6bf3f7c1ab30f2423181117f24248fc58148a (patch)
tree99e8c9239bb89a5a02e5c09d731186d0101cecd2 /include
parentbcf4d8f1c9b7a1b654edd1b1031f3df106ebea29 (diff)
downloadrabbitmq-server-77f6bf3f7c1ab30f2423181117f24248fc58148a.tar.gz
Have a completely separate counter for content size vs structural size.
Diffstat (limited to 'include')
-rw-r--r--include/rabbit.hrl13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/rabbit.hrl b/include/rabbit.hrl
index 3d2301ef..8f836a0e 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)).