Skip to content

Commit

Permalink
delgation function - correct message info
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Buchleitner <[email protected]>
  • Loading branch information
mabunixda committed Sep 4, 2024
1 parent 7c705e9 commit ab7b752
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions logrus_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ type CallHook struct {
}

func (hook *CallHook) Fire(entry *log.Entry) error {
line, err := entry.Bytes()
if err != nil {
return err
}
hook.Call(entry.Level.String(), string(line))
hook.Call(entry.Level.String(), entry.Message)
return nil
}

Expand Down

0 comments on commit ab7b752

Please sign in to comment.