Revendor github.com/sirupsen/logrus to v1.0.3
logrus v1.0.3 was the first release that include the change in terminal_windows.go that stops exec'ing "cmd ver" to obtain the version information and rather uses the x/sys/crypto/terminal.IsTerminal on the console fd. On Windows this is a significant performance difference to avoid the additional process activation of the "cmd ver" for each invocation of the shim/runhcs executables. Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
This commit is contained in:
@@ -100,7 +100,7 @@ func forwardRunhcsLogs(ctx context.Context, c net.Conn, fields logrus.Fields) {
|
||||
|
||||
// TODO: JTERRY75 maybe we need to make this configurable so we know
|
||||
// that runhcs is using the same one we are deserializing.
|
||||
ti, err := time.Parse(logrus.DefaultTimestampFormat, e.Data[logrus.FieldKeyTime].(string))
|
||||
ti, err := time.Parse(time.RFC3339, e.Data[logrus.FieldKeyTime].(string))
|
||||
if err != nil {
|
||||
log.G(ctx).WithFields(fields).WithError(err).Debug("invalid time stamp format")
|
||||
ti = time.Time{}
|
||||
|
||||
Reference in New Issue
Block a user