add debug

This commit is contained in:
wh1te909 2022-03-25 00:10:08 +00:00
parent c57c5a0cbf
commit 92af9b5c67

View File

@ -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
}