-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Trivial: Reject config block for log_skip #7050
Copy link
Copy link
Closed
Labels
bug 🐞Something isn't workingSomething isn't workinggood first issue 🐤Good for newcomersGood for newcomers
Description
These should not successfully parse as a Caddyfile:
log_skip {
path /api/* /socket/*
}
log_skip foo bar👆 this is a config based on misunderstanding how matchers work, and should be rejected during unmarshal. If there's a block ({ }), or any arguments at all, then it should return an error immediately.
A correct config would look like this:
@skipped path /api/* /socket/*
log_skip @skippedReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug 🐞Something isn't workingSomething isn't workinggood first issue 🐤Good for newcomersGood for newcomers