projects
/
trust_router.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bfbc89
)
Don't call openlog() implicitly
author
Adam Bishop
<adam@omega.org.uk>
Wed, 11 Mar 2015 14:46:59 +0000
(14:46 +0000)
committer
Adam Bishop
<adam@omega.org.uk>
Wed, 11 Mar 2015 14:59:38 +0000
(14:59 +0000)
common/tr_debug.c
patch
|
blob
|
history
diff --git
a/common/tr_debug.c
b/common/tr_debug.c
index
874b595
..
6f4fc6e
100644
(file)
--- a/
common/tr_debug.c
+++ b/
common/tr_debug.c
@@
-231,8
+231,6
@@
void tr_log_close() {
void tr_log(const int sev, const char *fmt, ...) {
- tr_log_open();
-
if (NULL != fmt) {
va_list ap;
@@
-252,8
+250,6
@@
void tr_log(const int sev, const char *fmt, ...) {
void tr_audit_resp(TID_RESP *resp) {
- tr_log_open();
-
if (NULL != resp) {
char *attrs[] = { audit_fmt("result", resp->result ? "error" : "success"),
@@
-278,8
+274,6
@@
void tr_audit_resp(TID_RESP *resp) {
void tr_audit_req(TID_REQ *req) {
- tr_log_open();
-
if (NULL != req) {
char *attrs[] = { audit_fmt("comm", NULL != req->comm ? req->comm->buf : NULL),