diff options
author | Andrew Thompson <[email protected]> | 2012-12-13 03:38:38 -0500 |
---|---|---|
committer | Andrew Thompson <[email protected]> | 2012-12-13 03:38:38 -0500 |
commit | d916d739d4f844da69ec1c3472b74008dc828e58 (patch) | |
tree | 1601fcc15b381e1acdbf3e9adbacdfa7c966ad76 /rebar.tests.config | |
parent | ea7af4b72444890df8cafc624ecdf7e32f7a62cb (diff) | |
download | cowboy-d916d739d4f844da69ec1c3472b74008dc828e58.tar.gz cowboy-d916d739d4f844da69ec1c3472b74008dc828e58.tar.bz2 cowboy-d916d739d4f844da69ec1c3472b74008dc828e58.zip |
Make the arguments to error_logger more consistent
The purpose of this patch is to make the arguments cowboy passes to
error_logger more consistent. With this patch there's only 3 variations
on the error_logger argument list; a 5 element list, an 8 element list
and a 10 element list. In all cases, the first 3 arguments are the
Module, Function and Arity of the function being called and the
second-to-last argument is always the Request. Additionally, for lists
longer than 5 elements, the last argument is always the stack-trace.
The added consistency of the argument ordering makes it much easier to
write code in lager's error_logger handler to catch these messages and
write a pretty one-liner (while writing the full message to the
crash.log).
Diffstat (limited to 'rebar.tests.config')
0 files changed, 0 insertions, 0 deletions