Skip to content

Commit 1da4033

Browse files
authored
Merge pull request #80 from ENTERPILOT/me/gom-37-hotfix
fix(gom-37): use stderr for logs
2 parents c0b1d8d + 424e1ba commit 1da4033

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/gomodel/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func main() {
4141

4242
logFormat := strings.ToLower(os.Getenv("LOG_FORMAT"))
4343

44-
var handler slog.Handler = slog.NewJSONHandler(os.Stdout, nil)
44+
var handler slog.Handler = slog.NewJSONHandler(os.Stderr, nil)
4545

4646
if (isTTYTerminal && logFormat != "json") || logFormat == "text" {
4747
handler = tint.NewHandler(os.Stderr, &tint.Options{

0 commit comments

Comments
 (0)