Remove logrus to allow for easier customization

This commit is contained in:
Arthur Barr
2018-02-22 17:29:06 +00:00
parent b497a04dcb
commit 91bf65ab57
52 changed files with 241 additions and 3795 deletions

View File

@@ -23,8 +23,6 @@ import (
"os"
"sync"
log "github.com/sirupsen/logrus"
"github.com/ibm-messaging/mq-container/internal/name"
"github.com/ibm-messaging/mq-container/internal/ready"
)
@@ -35,7 +33,6 @@ func doMain() error {
logTermination(err)
return err
}
configureDebugLogger()
err = ready.Clear()
if err != nil {
logTermination(err)
@@ -78,12 +75,12 @@ func doMain() error {
}
var wg sync.WaitGroup
defer func() {
log.Debugln("Waiting for log mirroring to complete")
log.Debug("Waiting for log mirroring to complete")
wg.Wait()
}()
ctx, cancelMirror := context.WithCancel(context.Background())
defer func() {
log.Debugln("Cancel log mirroring")
log.Debug("Cancel log mirroring")
cancelMirror()
}()
// TODO: Use the error channel