Skip to content

Commit

Permalink
🐛 fix breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
acabarbaye committed Oct 26, 2023
1 parent 41720b0 commit 5386731
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/logging/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
)

type ClientLogger struct {
mLogger *logs.MultipleLogger
mLogger *logs.MultipleLoggerWithLoggerSource
}

func (c *ClientLogger) Close() error {
Expand Down Expand Up @@ -133,7 +133,7 @@ func NewClientLogger(loggerSource string, defaultLoggers ...logs.Loggers) (l ILo
if err != nil {
return
}
multipleLogger, ok := multipleL.(*logs.MultipleLogger)
multipleLogger, ok := multipleL.(*logs.MultipleLoggerWithLoggerSource)
if !ok && multipleLogger == nil {
err = fmt.Errorf("%w: multiple logger is not of the expected type", commonerrors.ErrUnexpected)
return
Expand Down

0 comments on commit 5386731

Please sign in to comment.