From d0908bc70f14e9e36d7bff7390f93d0dcbd4df3b Mon Sep 17 00:00:00 2001 From: terry-xiaoyu <506895667@qq.com> Date: Fri, 20 Sep 2019 21:40:15 +0800 Subject: [PATCH] Improve the pipeline error msg --- src/emqx_misc.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emqx_misc.erl b/src/emqx_misc.erl index fc4ee842a..8a7dda032 100644 --- a/src/emqx_misc.erl +++ b/src/emqx_misc.erl @@ -83,7 +83,7 @@ pipeline([Fun|More], Input, State) -> {error, Reason, NState} catch Error:Reason:Stacktrace -> - ?LOG(error, "pipeline ~p failed: ~p, stacktrace: ~p", + ?LOG(error, "pipeline ~p failed: ~p,\nstacktrace: ~0p", [{Fun, Input, State}, {Error, Reason}, Stacktrace]), {error, Reason, State} end.