--- a/radsecproxy.c
|
|
+++ b/radsecproxy.c
|
|
@@ -3385,15 +3385,13 @@ int radsecproxy_main(int argc, char **ar
|
|
options.loglevel = loglevel;
|
|
else if (options.loglevel)
|
|
debug_set_level(options.loglevel);
|
|
- if (!foreground) {
|
|
- debug_set_destination(options.logdestination
|
|
- ? options.logdestination
|
|
- : "x-syslog:///", LOG_TYPE_DEBUG);
|
|
- if (options.ftickssyslogfacility) {
|
|
- debug_set_destination(options.ftickssyslogfacility,
|
|
- LOG_TYPE_FTICKS);
|
|
- free(options.ftickssyslogfacility);
|
|
- }
|
|
+ debug_set_destination(options.logdestination
|
|
+ ? options.logdestination
|
|
+ : "x-syslog:///", LOG_TYPE_DEBUG);
|
|
+ if (options.ftickssyslogfacility) {
|
|
+ debug_set_destination(options.ftickssyslogfacility,
|
|
+ LOG_TYPE_FTICKS);
|
|
+ free(options.ftickssyslogfacility);
|
|
}
|
|
free(options.logdestination);
|
|
if (options.logtid)
|