add debug
This commit is contained in:
parent
c57c5a0cbf
commit
92af9b5c67
@ -262,11 +262,12 @@ func (a *Agent) NixMeshNodeID() string {
|
|||||||
for !meshSuccess {
|
for !meshSuccess {
|
||||||
out := a.CmdV2(opts)
|
out := a.CmdV2(opts)
|
||||||
meshNodeID = out.Stdout
|
meshNodeID = out.Stdout
|
||||||
|
a.Logger.Debugln("Stdout:", out.Stdout)
|
||||||
|
a.Logger.Debugln("Stderr:", out.Stderr)
|
||||||
if meshNodeID == "" {
|
if meshNodeID == "" {
|
||||||
time.Sleep(1 * time.Second)
|
time.Sleep(1 * time.Second)
|
||||||
continue
|
continue
|
||||||
} else if strings.Contains(strings.ToLower(meshNodeID), "graphical version") || strings.Contains(strings.ToLower(meshNodeID), "zenity") {
|
} 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)
|
time.Sleep(1 * time.Second)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user