diff options
author | Hans Bolinder <[email protected]> | 2018-02-05 12:34:37 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2018-02-05 14:45:37 +0100 |
commit | b2e979e1b0cc376e7408cbdd480eb140b533f75a (patch) | |
tree | 593883433d62d3c90a2561d820d08635d51760ad /lib/inets/src/http_server/httpd_response.erl | |
parent | f3c2cfda7f145d6ffd2fdd76659348056f1828c9 (diff) | |
download | otp-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.erl | 4 |
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 |