Skip to content

Commit

Permalink
Merge pull request #9 from ewanmellor/non-atom-levels
Browse files Browse the repository at this point in the history
Improve lager_syslog_backend to support non-atom output log levels.
  • Loading branch information
Vagabond committed Mar 8, 2013
2 parents 55b6231 + ad7831b commit 10d52b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lager_syslog_backend.erl
Expand Up @@ -40,9 +40,9 @@


%% @private
init([Ident, Facility, Level]) when is_atom(Level) ->
init([Ident, Facility, Level]) ->
init([Ident, Facility, Level, {lager_default_formatter, ?DEFAULT_FORMAT}]);
init([Ident, Facility, Level, {Formatter, FormatterConfig}]) when is_atom(Level), is_atom(Formatter) ->
init([Ident, Facility, Level, {Formatter, FormatterConfig}]) when is_atom(Formatter) ->
case application:start(syslog) of
ok ->
init2([Ident, Facility, Level, {Formatter, FormatterConfig}]);
Expand Down

0 comments on commit 10d52b9

Please sign in to comment.