summaryrefslogtreecommitdiffhomepage
path: root/src/nginext/nxt_go_log.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-07-12 20:32:18 +0300
committerMax Romanov <max.romanov@nginx.com>2017-07-12 20:32:18 +0300
commita97a5e8a0b7a921905994bae101d4f74f5a8aaa4 (patch)
tree922a2e6fed3630439b56d99b57c7452ee259f617 /src/nginext/nxt_go_log.h
parent51bbdd33382eee7da34ff0ed7d0df51ab2345786 (diff)
downloadunit-a97a5e8a0b7a921905994bae101d4f74f5a8aaa4.tar.gz
unit-a97a5e8a0b7a921905994bae101d4f74f5a8aaa4.tar.bz2
Go: worker initialization. READY message to master.
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_ */