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:
4
vendor/github.com/sirupsen/logrus/logger.go
generated
vendored
4
vendor/github.com/sirupsen/logrus/logger.go
generated
vendored
@@ -25,7 +25,7 @@ type Logger struct {
|
||||
Formatter Formatter
|
||||
// The logging level the logger should log at. This is typically (and defaults
|
||||
// to) `logrus.Info`, which allows Info(), Warn(), Error() and Fatal() to be
|
||||
// logged. `logrus.Debug` is useful in
|
||||
// logged.
|
||||
Level Level
|
||||
// Used to sync writing to the log. Locking is enabled by Default
|
||||
mu MutexWrap
|
||||
@@ -312,6 +312,6 @@ func (logger *Logger) level() Level {
|
||||
return Level(atomic.LoadUint32((*uint32)(&logger.Level)))
|
||||
}
|
||||
|
||||
func (logger *Logger) setLevel(level Level) {
|
||||
func (logger *Logger) SetLevel(level Level) {
|
||||
atomic.StoreUint32((*uint32)(&logger.Level), uint32(level))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user