Replace aliased imports of logrus, fixes #11762
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
This commit is contained in:
parent
3b068ebe39
commit
18180bfabf
15 changed files with 80 additions and 80 deletions
|
@ -6,7 +6,7 @@ import (
|
|||
"sync/atomic"
|
||||
"syscall"
|
||||
|
||||
log "github.com/Sirupsen/logrus"
|
||||
"github.com/Sirupsen/logrus"
|
||||
)
|
||||
|
||||
// Trap sets up a simplified signal "trap", appropriate for common
|
||||
|
@ -29,7 +29,7 @@ func Trap(cleanup func()) {
|
|||
interruptCount := uint32(0)
|
||||
for sig := range c {
|
||||
go func(sig os.Signal) {
|
||||
log.Infof("Received signal '%v', starting shutdown of docker...", sig)
|
||||
logrus.Infof("Received signal '%v', starting shutdown of docker...", sig)
|
||||
switch sig {
|
||||
case os.Interrupt, syscall.SIGTERM:
|
||||
// If the user really wants to interrupt, let him do so.
|
||||
|
@ -43,7 +43,7 @@ func Trap(cleanup func()) {
|
|||
return
|
||||
}
|
||||
} else {
|
||||
log.Infof("Force shutdown of docker, interrupting cleanup")
|
||||
logrus.Infof("Force shutdown of docker, interrupting cleanup")
|
||||
}
|
||||
case syscall.SIGQUIT:
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue