Browse code

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.

Jan Janak authored on 02/03/2009 16:25:17
Showing 1 changed files
... ...
@@ -316,7 +316,8 @@ int do_action(struct run_act_ctx* h, struct action* a, struct sip_msg* msg)
316 316
 				ret=E_BUG;
317 317
 				break;
318 318
 			}
319
-			LOG_(a->val[0].u.number, "<script>: ", "%s", a->val[1].u.string);
319
+			LOG_(DEFAULT_FACILITY, a->val[0].u.number, "<script>: ", "%s", 
320
+				 a->val[1].u.string);
320 321
 			ret=1;
321 322
 			break;
322 323