debian-forge-composer/vendor/github.com/golang/glog/glog_file_nonwindows.go
Florian Schüller 85ce08cad9 go.mod: upgrade glog
github.com/golang/glog 1.2.2 is reported to be vulnerable,
so we'll upgrade to 1.2.4.
2025-01-29 13:02:28 +01:00

19 lines
465 B
Go

//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 ""
}