1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Update imports for logrus version

Add forks for changes which only make logrus change without functional
change.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan 2017-07-26 15:03:47 -07:00
parent 1009e6a40b
commit 4f3616fb1c
No known key found for this signature in database
GPG key ID: F58C5D0A4405ACDB
167 changed files with 915 additions and 516 deletions

View file

@ -4,7 +4,7 @@ import (
"fmt"
"sync"
"github.com/Sirupsen/logrus"
"github.com/sirupsen/logrus"
)
// Broadcaster sends events to multiple, reliable Sinks. The goal of this
@ -160,7 +160,7 @@ func (b *Broadcaster) run() {
}
}
func (b Broadcaster) String() string {
func (b *Broadcaster) String() string {
// Serialize copy of this broadcaster without the sync.Once, to avoid
// a data race.

View file

@ -50,7 +50,7 @@ func (ch *Channel) Close() error {
return nil
}
func (ch Channel) String() string {
func (ch *Channel) String() string {
// Serialize a copy of the Channel that doesn't contain the sync.Once,
// to avoid a data race.
ch2 := map[string]interface{}{

View file

@ -4,7 +4,7 @@ import (
"container/list"
"sync"
"github.com/Sirupsen/logrus"
"github.com/sirupsen/logrus"
)
// Queue accepts all messages into a queue for asynchronous consumption
@ -31,7 +31,7 @@ func NewQueue(dst Sink) *Queue {
}
// Write accepts the events into the queue, only failing if the queue has
// beend closed.
// been closed.
func (eq *Queue) Write(event Event) error {
eq.mu.Lock()
defer eq.mu.Unlock()

View file

@ -7,7 +7,7 @@ import (
"sync/atomic"
"time"
"github.com/Sirupsen/logrus"
"github.com/sirupsen/logrus"
)
// RetryingSink retries the write until success or an ErrSinkClosed is
@ -90,7 +90,7 @@ func (rs *RetryingSink) Close() error {
return nil
}
func (rs RetryingSink) String() string {
func (rs *RetryingSink) String() string {
// Serialize a copy of the RetryingSink without the sync.Once, to avoid
// a data race.
rs2 := map[string]interface{}{