fix log stdout

This commit is contained in:
juzeon
2024-02-11 20:29:56 -05:00
committed by yuhan6665
parent 003928ca94
commit 33cd4a2f24
+4
View File
@@ -39,6 +39,10 @@ func main() {
slog.SetDefault(slog.New(slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{
Level: slog.LevelDebug,
})))
} else {
slog.SetDefault(slog.New(slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{
Level: slog.LevelInfo,
})))
}
if addr != "" && in != "" ||
addr == "" && in == "" {