Skip to content

Commit

Permalink
Add forgotten ejabberd_loglevel_SUITE_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
erszcz committed Jun 3, 2015
1 parent 53f1a75 commit 993e5d6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/ejabberd/test/ejabberd_loglevel_SUITE_helper.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-module(ejabberd_loglevel_SUITE_helper).
-compile([export_all,
{parse_transform, lager_transform}]).

%% We have to enable parse transforms for this module,
%% otherwise we won't be able to test custom log level feature of ejabberd_loglevel.

log(_, critical, Fmt, Args) -> lager:critical(Fmt, Args);
log(_, error, Fmt, Args) -> lager:error(Fmt, Args);
log(_, warning, Fmt, Args) -> lager:warning(Fmt, Args);
log(_, info, Fmt, Args) -> lager:info(Fmt, Args);
log(_, debug, Fmt, Args) -> lager:debug(Fmt, Args).

0 comments on commit 993e5d6

Please sign in to comment.