more logging for status cli so you can debug address resolution

This commit is contained in:
adman
2026-04-12 23:15:50 +02:00
parent 1b8a9677c6
commit 9f6b1f6bcf
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ func mainE() (err error) {
args := os.Args
// Debug stuff
//slog.SetLogLoggerLevel(slog.LevelDebug)
args = []string{"TEST", "api", "-name", "Admin_Else"}
slog.SetLogLoggerLevel(slog.LevelDebug)
//args = []string{"TEST", "api", "-name", "Admin_Else"}
if len(args) < 2 {
err = ExpectedASubcommandErr
+2
View File
@@ -3,6 +3,7 @@ package status
import (
"flag"
"fmt"
"log/slog"
"time"
"github.com/admin-else/strom/client"
@@ -86,6 +87,7 @@ func Run(args []string) (err error) {
return
}
}
slog.Debug("resolved address to ", "addr", *addrFlag)
status, err := StatusRaw(*addrFlag)
if err != nil {