mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 07:43:17 +00:00
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.
This commit is contained in:
parent
bffc258732
commit
e43b6d8178
27 changed files with 71 additions and 67 deletions
|
@ -94,7 +94,7 @@ func (Transport) CaddyModule() caddy.ModuleInfo {
|
|||
|
||||
// Provision sets up t.
|
||||
func (t *Transport) Provision(ctx caddy.Context) error {
|
||||
t.logger = ctx.Logger(t)
|
||||
t.logger = ctx.Logger()
|
||||
|
||||
if t.Root == "" {
|
||||
t.Root = "{http.vars.root}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue