Skip to content

Setting an explicit log level does not work if you have multiple options #32

Description

@ericmj

We configure the plug as plug Logster.Plugs.Logger, excludes: [:params], log: :info to set all logs to the info level but this does not work as the pattern match check assumes that there is only one option:

defp log_level(_, log: log_level), do: log_level

This is because keyword lists cannot be partial matched as you can with maps.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions