git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aea8a7a
)
* print thread id in debugging output
author
Michal Voců
<michal@ruk.cuni.cz>
Fri, 14 Jan 2005 14:41:49 +0000
(14:41 +0000)
committer
Michal Voců
<michal@ruk.cuni.cz>
Fri, 14 Jan 2005 14:41:49 +0000
(14:41 +0000)
org.glite.lb.common/src/il_log.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.common/src/il_log.c
b/org.glite.lb.common/src/il_log.c
index
11170c5
..
e3682a3
100644
(file)
--- a/
org.glite.lb.common/src/il_log.c
+++ b/
org.glite.lb.common/src/il_log.c
@@
-4,6
+4,7
@@
#include <stdlib.h>
#include <stdarg.h>
#include <syslog.h>
+#include <pthread.h>
int log_level;
@@
-17,9
+18,11
@@
il_log(int level, char *fmt, ...)
vasprintf(&err_text, fmt, fmt_args);
va_end(fmt_args);
- if(level <= log_level)
+ if(level <= log_level) {
+ fprintf(stderr, "[%6d] ", pthread_self());
fprintf(stderr, err_text);
-
+ }
+
if(level <= LOG_ERR) {
openlog("edg-wl-interlogd", LOG_PID | LOG_CONS, LOG_DAEMON);
syslog(level, "%s", err_text);