Преглед на файлове

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 преди 16 години
родител
ревизия
e8249ab716
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      action.c

+ 2 - 1
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;