diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2022-09-16 16:55:30 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2022-09-16 16:55:36 -0600 |
commit | e43b6d81782ef79f22058179d8793f40cea89556 (patch) | |
tree | 13648af23e92b26cb28c13cb12c620bf746c819c /modules/caddypki/adminapi.go | |
parent | bffc2587329ca7e1f8a28edae9b5a9bf11e2fc7c (diff) |
core: Variadic Context.Logger(); soft deprecation
Ideally I'd just remove the parameter to caddy.Context.Logger(), but
this would break most Caddy plugins.
Instead, I'm making it variadic and marking it as partially deprecated.
In the future, I might completely remove the parameter once most
plugins have updated.
Diffstat (limited to 'modules/caddypki/adminapi.go')
-rw-r--r-- | modules/caddypki/adminapi.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddypki/adminapi.go b/modules/caddypki/adminapi.go index b4d2695..f03c6b6 100644 --- a/modules/caddypki/adminapi.go +++ b/modules/caddypki/adminapi.go @@ -47,7 +47,7 @@ func (adminAPI) CaddyModule() caddy.ModuleInfo { // Provision sets up the adminAPI module. func (a *adminAPI) Provision(ctx caddy.Context) error { a.ctx = ctx - a.log = ctx.Logger(a) + a.log = ctx.Logger(a) // TODO: passing in 'a' is a hack until the admin API is officially extensible (see #5032) // First check if the PKI app was configured, because // a.ctx.App() has the side effect of instantiating |