mirror of
https://github.com/containers/podman.git
synced 2025-11-30 10:07:33 +08:00
Bump github.com/sirupsen/logrus from 1.8.0 to 1.8.1
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.8.0 to 1.8.1. - [Release notes](https://github.com/sirupsen/logrus/releases) - [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md) - [Commits](https://github.com/sirupsen/logrus/compare/v1.8.0...v1.8.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
committed by
Daniel J Walsh
parent
81737b3773
commit
12fb9e4653
10
vendor/github.com/sirupsen/logrus/entry.go
generated
vendored
10
vendor/github.com/sirupsen/logrus/entry.go
generated
vendored
@@ -261,7 +261,15 @@ func (entry *Entry) log(level Level, msg string) {
|
||||
}
|
||||
|
||||
func (entry *Entry) fireHooks() {
|
||||
err := entry.Logger.Hooks.Fire(entry.Level, entry)
|
||||
var tmpHooks LevelHooks
|
||||
entry.Logger.mu.Lock()
|
||||
tmpHooks = make(LevelHooks, len(entry.Logger.Hooks))
|
||||
for k, v := range entry.Logger.Hooks {
|
||||
tmpHooks[k] = v
|
||||
}
|
||||
entry.Logger.mu.Unlock()
|
||||
|
||||
err := tmpHooks.Fire(entry.Level, entry)
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Failed to fire hook: %v\n", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user