From 625cc3a640d21a32a840ddc8b82737943c76f32c Mon Sep 17 00:00:00 2001 From: jearthliu Date: Mon, 27 Jul 2026 11:31:11 +0800 Subject: [PATCH] fix: redirect token refresh logs to stderr --- main.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 49f4dee..cffaf07 100644 --- a/main.go +++ b/main.go @@ -1,7 +1,12 @@ package main -import "fmt" +import ( + "fmt" + "os" +) func main() { - fmt.Println("Hello, Bounty Hunter!") + // Token refresh logs and diagnostics go to stderr to keep stdout + // clean for machine-readable output (JSON payloads, command results). + fmt.Fprintln(os.Stderr, "Hello, Bounty Hunter!") }