Skip to content

Commit adcc2c7

Browse files
committed
fix error log not shown
1 parent 0a96b3d commit adcc2c7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

module.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (Middleware) CaddyModule() caddy.ModuleInfo {
3333
}
3434
}
3535

36-
func (m Middleware) Provision(ctx caddy.Context) error {
36+
func (m *Middleware) Provision(ctx caddy.Context) error {
3737
m.logger = ctx.Logger()
3838
return nil
3939
}
@@ -300,7 +300,6 @@ func getOptions(r *http.Request) (bimg.Options, error) {
300300
}
301301
}
302302
}
303-
304303
return options, nil
305304
}
306305

0 commit comments

Comments
 (0)