From 60f75560a2a950e14aabe88c0a7b1223f31277ad Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Fri, 13 Dec 2024 14:36:50 -0800 Subject: [PATCH] runner: switch logging back to stderr (#8091) This puts the low-level runner logging back on stderr for consistency with prior releases --- llama/llama.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llama/llama.go b/llama/llama.go index 15e719798..c11d53411 100644 --- a/llama/llama.go +++ b/llama/llama.go @@ -89,6 +89,7 @@ import ( _ "embed" "errors" "fmt" + "os" "runtime" "runtime/cgo" "slices" @@ -131,7 +132,7 @@ func llamaLog(level int32, text *C.char, _ unsafe.Pointer) { return } - fmt.Print(C.GoString(text)) + fmt.Fprint(os.Stderr, C.GoString(text)) } func GetModelArch(modelPath string) (string, error) {