Update vendoring (#1304)

Update to current vendoring.

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2019-04-15 14:00:19 +02:00 committed by GitHub
commit e71e9f5a2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
160 changed files with 3453 additions and 2729 deletions

View file

@ -1,6 +1,7 @@
package logrus
import (
"context"
"io"
"time"
)
@ -55,6 +56,11 @@ func WithError(err error) *Entry {
return std.WithField(ErrorKey, err)
}
// WithContext creates an entry from the standard logger and adds a context to it.
func WithContext(ctx context.Context) *Entry {
return std.WithContext(ctx)
}
// WithField creates an entry from the standard logger and adds a field to
// it. If you want multiple fields, use `WithFields`.
//