Skip to content

Commit 2a578df

Browse files
MB-47087 Change chars_limit default from 50K to -1
io_lib:format/3 with chars_limit has be been buggy and therefore to err on the side of caution moving the chars_limit to -1. Essentially reverting to the old full term logging. Change-Id: I44597a52aacc740fcc7a8da1c5a3a34d27ef4dd7 Reviewed-on: http://review.couchbase.org/c/ns_server/+/158982 Tested-by: <[email protected]> Reviewed-by: Meni Hillel <[email protected]>
1 parent 4ab0277 commit 2a578df

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

deps/ale/src/ale_codegen.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
-include("ale.hrl").
1515

16-
-define(CHARS_LIMIT_DEFAULT, 50000).
16+
-define(CHARS_LIMIT_DEFAULT, -1).
1717

1818
logger_impl(Logger) when is_atom(Logger) ->
1919
logger_impl(atom_to_list(Logger));

src/ns_pubsub.erl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,12 @@ do_subscribe_link_continue(Name, Parent, Handler) ->
150150
end;
151151
{'EXIT', Parent, Reason} ->
152152
?log_debug("Parent process of subscription ~p "
153-
"exited with reason ~p", [{Name, Parent}, Reason],
154-
[{chars_limit, 1000}]),
153+
"exited with reason ~p", [{Name, Parent}, Reason]),
155154
normal;
156155
{'EXIT', Pid, Reason} ->
157156
?log_debug("Linked process ~p of subscription ~p "
158157
"died unexpectedly with reason ~p",
159-
[Pid, {Name, Parent}, Reason],
160-
[{chars_limit, 1000}]),
158+
[Pid, {Name, Parent}, Reason]),
161159
{linked_process_died, Pid, Reason};
162160
X ->
163161
?log_error("Subscription ~p got unexpected message: ~p",

0 commit comments

Comments
 (0)