diff options
author | Linus Nordberg <linus@nordu.net> | 2011-12-12 15:42:50 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-12-12 15:42:50 +0100 |
commit | ab7c8e7cc52f94029a17ec14236ab7ffa95d9bf4 (patch) | |
tree | 172e31e605880b26b9dc32931290a3192eb32e2c /radsecproxy.c | |
parent | 3493d1fc1039a757c0db763b8cb9129298db0135 (diff) | |
parent | 0693da042c5bca59b3090f2eaa741f77098e9731 (diff) |
Merge branch 'fticks_syslog2'
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index c70ab5c..d08426e 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -3093,6 +3093,7 @@ void getmainconfig(const char *configfile) { "FTicksReporting", CONF_STR, &fticks_reporting_str, "FTicksMAC", CONF_STR, &fticks_mac_str, "FTicksKey", CONF_STR, &fticks_key_str, + "FTicksSyslogFacility", CONF_STR, &options.ftickssyslogfacility, #endif NULL )) @@ -3247,8 +3248,18 @@ int radsecproxy_main(int argc, char **argv) { options.loglevel = loglevel; else if (options.loglevel) debug_set_level(options.loglevel); - if (!foreground) - debug_set_destination(options.logdestination ? options.logdestination : "x-syslog:///"); + if (!foreground) { + debug_set_destination(options.logdestination + ? options.logdestination + : "x-syslog:///", LOG_TYPE_DEBUG); +#if defined(WANT_FTICKS) + if (options.ftickssyslogfacility) { + debug_set_destination(options.ftickssyslogfacility, + LOG_TYPE_FTICKS); + free(options.ftickssyslogfacility); + } +#endif + } free(options.logdestination); if (!list_first(clconfs)) |