Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request ChicagoBoss#526 from fdevibe/format_stacktraces_in…
…_logs-spec_and_docs

Add spec and doc to stactrace function.
  • Loading branch information
danikp committed Nov 17, 2014
2 parents 69c43b5 + 40daf97 commit b7c9829
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/boss/boss_log_util.erl
Expand Up @@ -5,6 +5,10 @@
-export([format_stacktrace/3]).
-endif.

-spec stacktrace(atom(), any()) -> [char()].

%% @doc Generates a stacktrace and formats it according to the boss_env setting
%% log_stack_multiline.
stacktrace(Class, Error) ->
format_stacktrace(Class, Error, erlang:get_stacktrace()).

Expand Down

0 comments on commit b7c9829

Please sign in to comment.