mirror of
https://github.com/mudler/luet.git
synced 2025-09-18 16:32:16 +00:00
🎨 Accept types.Logger in WithLogger
This commit is contained in:
committed by
GitHub
parent
edd2275bf5
commit
264bf53fe7
@@ -51,7 +51,7 @@ func (c *Context) GetAnnotation(s string) interface{} {
|
||||
type ContextOption func(c *Context) error
|
||||
|
||||
// WithLogger sets the logger
|
||||
func WithLogger(l *logger.Logger) ContextOption {
|
||||
func WithLogger(l types.Logger) ContextOption {
|
||||
return func(c *Context) error {
|
||||
c.Logger = l
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user