Skip to content

Commit

Permalink
Pass the logformat variable to function setting the formatter (#178)
Browse files Browse the repository at this point in the history
Previously the loglevel was accidentally passed and our tests didn't
catch it
  • Loading branch information
michalwski committed Jun 22, 2020
1 parent 2663978 commit 78bece9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoose_push/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defmodule MongoosePush.Application do
loglevel = Application.get_env(:mongoose_push, :logging)[:level] || :info
logformat = Application.get_env(:mongoose_push, :logging)[:format] || :logfmt
set_loglevel(loglevel)
set_logformat(loglevel)
set_logformat(logformat)

# Mostly status logging
_ = check_runtime_configuration_status()
Expand Down

0 comments on commit 78bece9

Please sign in to comment.