summaryrefslogtreecommitdiffhomepage
path: root/src/nginext/nxt_go_log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nginext/nxt_go_log.h')
-rw-r--r--src/nginext/nxt_go_log.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nginext/nxt_go_log.h b/src/nginext/nxt_go_log.h
index da1ce6a0..d596cfb3 100644
--- a/src/nginext/nxt_go_log.h
+++ b/src/nginext/nxt_go_log.h
@@ -16,8 +16,7 @@
#if (NXT_DEBUG)
#define nxt_go_debug(fmt, ARGS...) \
- fprintf(stdout, "go debug[%p]: " fmt "\n", \
- (void *) (intptr_t) pthread_self(), ##ARGS)
+ fprintf(stderr, "[go debug] " fmt "\n", ##ARGS)
#else
@@ -26,10 +25,10 @@
#endif
#define nxt_go_warn(fmt, ARGS...) \
- fprintf(stdout, "go warn: " fmt "\n", ##ARGS)
+ fprintf(stderr, "[go warn] " fmt "\n", ##ARGS)
#define nxt_go_error(fmt, ARGS...) \
- fprintf(stdout, "go error: " fmt "\n", ##ARGS)
+ fprintf(stderr, "[go error] " fmt "\n", ##ARGS)
#endif /* _NXT_GO_LOG_H_INCLUDED_ */