mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-28 06:29:29 +01:00
Bumps [github.com/golang/glog](https://github.com/golang/glog) from 1.2.2 to 1.2.4. - [Release notes](https://github.com/golang/glog/releases) - [Commits](https://github.com/golang/glog/compare/v1.2.2...v1.2.4) --- updated-dependencies: - dependency-name: github.com/golang/glog dependency-version: 1.2.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
20 lines
465 B
Go
Vendored
20 lines
465 B
Go
Vendored
//go:build !windows
|
|
|
|
package glog
|
|
|
|
import "os/user"
|
|
|
|
// shouldRegisterStderrSink determines whether we should register a log sink that writes to stderr.
|
|
// Today, this always returns true on non-Windows platforms, as it specifically checks for a
|
|
// condition that is only present on Windows.
|
|
func shouldRegisterStderrSink() bool {
|
|
return true
|
|
}
|
|
|
|
func lookupUser() string {
|
|
if current, err := user.Current(); err == nil {
|
|
return current.Username
|
|
}
|
|
return ""
|
|
}
|