mirror of
https://github.com/openziti/zrok.git
synced 2026-08-24 10:14:56 -05:00
correct log arg
This commit is contained in:
+3
-2
@@ -62,8 +62,9 @@ func (cmd *enableCommand) run(_ *cobra.Command, args []string) {
|
||||
} else {
|
||||
username = os.Getenv("USER")
|
||||
if username == "" {
|
||||
username = fmt.Sprintf("user-%d", os.Geteuid())
|
||||
logrus.Warnf("unable to determine the current user, using effective UID: %v", err)
|
||||
euid := os.Geteuid()
|
||||
username = fmt.Sprintf("user-%d", euid)
|
||||
logrus.Warnf("unable to determine the current user, using effective UID: %v", euid)
|
||||
}
|
||||
}
|
||||
hostDetail = fmt.Sprintf("%v; %v", username, hostDetail)
|
||||
|
||||
Reference in New Issue
Block a user