Skip to content

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

@ericmj

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.

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