Skip to content

fix: Remove nil arg from zapslog.NewHandler call#6984

Merged
mholt merged 1 commit intocaddyserver:masterfrom
IndraGunawan:fix-zapslog-arg
Apr 28, 2025
Merged

fix: Remove nil arg from zapslog.NewHandler call#6984
mholt merged 1 commit intocaddyserver:masterfrom
IndraGunawan:fix-zapslog-arg

Conversation

@IndraGunawan
Copy link
Copy Markdown
Contributor

opts argument in the zapslog.NewHandler function should not be passed as nil

https://github.com/uber-go/zap/blob/7db06bc9b095571d3dc3d4eebdfbe4dd9bd20405/exp/zapslog/handler.go#L53

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 24, 2025

CLA assistant check
All committers have signed the CLA.

@IndraGunawan IndraGunawan changed the title fix: Remove nil arg from zapslog.NewHandler call fix: Remove nil arg from zapslog.NewHandler call Apr 24, 2025
@mholt
Copy link
Copy Markdown
Member

mholt commented Apr 24, 2025

Interesting, seems it changed to a variadic parameter in the last year or so.

@mholt mholt merged commit 89ed5f4 into caddyserver:master Apr 28, 2025
20 checks passed
@francislavoie francislavoie added this to the v2.10.1 milestone Aug 22, 2025
mohammed90 pushed a commit to cedricziel/caddy that referenced this pull request Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants