From 92af9b5c67329337b7bb024151b6ec2178230cca Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Fri, 25 Mar 2022 00:10:08 +0000 Subject: [PATCH] add debug --- agent/agent_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/agent_linux.go b/agent/agent_linux.go index 11bed39..a309295 100644 --- a/agent/agent_linux.go +++ b/agent/agent_linux.go @@ -262,11 +262,12 @@ func (a *Agent) NixMeshNodeID() string { for !meshSuccess { out := a.CmdV2(opts) meshNodeID = out.Stdout + a.Logger.Debugln("Stdout:", out.Stdout) + a.Logger.Debugln("Stderr:", out.Stderr) if meshNodeID == "" { time.Sleep(1 * time.Second) continue } else if strings.Contains(strings.ToLower(meshNodeID), "graphical version") || strings.Contains(strings.ToLower(meshNodeID), "zenity") { - a.Logger.Debugln(out.Stdout) time.Sleep(1 * time.Second) continue }