Module: sip-router
Branch: master
Commit: e8249ab7160dce2c3aa0fea5cffbe9284928b5d2
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e8249ab…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Mon Mar 2 17:25:17 2009 +0100
Add logging facility parameter to LOG_.
The recent changes in dprint.h introduced a new parameter to LOG_ macro
which can be used to specify other than the default logging facility
configured through the config framework.
All calls to LOG_ need to be updated to have DEFAULT_FACILITY as the
first parameter. Other logging macros are unaffected.
---
action.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/action.c b/action.c
index 131fc4b..47d702c 100644
--- a/action.c
+++ b/action.c
@@ -316,7 +316,8 @@ int do_action(struct run_act_ctx* h, struct action* a, struct sip_msg*
msg)
ret=E_BUG;
break;
}
- LOG_(a->val[0].u.number, "<script>: ", "%s",
a->val[1].u.string);
+ LOG_(DEFAULT_FACILITY, a->val[0].u.number, "<script>: ",
"%s",
+ a->val[1].u.string);
ret=1;
break;