aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/src/http_server/httpd_response.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-02-05 12:34:37 +0100
committerHans Bolinder <[email protected]>2018-02-05 14:45:37 +0100
commitb2e979e1b0cc376e7408cbdd480eb140b533f75a (patch)
tree593883433d62d3c90a2561d820d08635d51760ad /lib/inets/src/http_server/httpd_response.erl
parentf3c2cfda7f145d6ffd2fdd76659348056f1828c9 (diff)
downloadotp-b2e979e1b0cc376e7408cbdd480eb140b533f75a.tar.gz
otp-b2e979e1b0cc376e7408cbdd480eb140b533f75a.tar.bz2
otp-b2e979e1b0cc376e7408cbdd480eb140b533f75a.zip
inets: Do not call erlang:get_stacktrace()
Diffstat (limited to 'lib/inets/src/http_server/httpd_response.erl')
-rw-r--r--lib/inets/src/http_server/httpd_response.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inets/src/http_server/httpd_response.erl b/lib/inets/src/http_server/httpd_response.erl
index 6b9053fda6..57ce162922 100644
--- a/lib/inets/src/http_server/httpd_response.erl
+++ b/lib/inets/src/http_server/httpd_response.erl
@@ -84,14 +84,14 @@ traverse_modules(ModData,[Module|Rest]) ->
{proceed, NewData} ->
traverse_modules(ModData#mod{data = NewData}, Rest)
catch
- T:E ->
+ T:E:Stacktrace ->
String =
lists:flatten(
io_lib:format("module traverse failed: ~p:do => "
"~n Error Type: ~p"
"~n Error: ~p"
"~n Stack trace: ~p",
- [Module, T, E, ?STACK()])),
+ [Module, T, E, Stacktrace])),
httpd_util:error_log(ModData#mod.config_db, String),
send_status(ModData, 500, none),
done