1
0

200-logdest-on-foreground.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. diff --git a/radsecproxy.c b/radsecproxy.c
  2. index 563c4a8..9fa076d 100644
  3. --- a/radsecproxy.c
  4. +++ b/radsecproxy.c
  5. @@ -3382,18 +3382,16 @@ int radsecproxy_main(int argc, char **argv) {
  6. options.loglevel = loglevel;
  7. else if (options.loglevel)
  8. debug_set_level(options.loglevel);
  9. - if (!foreground) {
  10. - debug_set_destination(options.logdestination
  11. - ? options.logdestination
  12. - : "x-syslog:///", LOG_TYPE_DEBUG);
  13. + debug_set_destination(options.logdestination
  14. + ? options.logdestination
  15. + : "x-syslog:///", LOG_TYPE_DEBUG);
  16. #if defined(WANT_FTICKS)
  17. - if (options.ftickssyslogfacility) {
  18. - debug_set_destination(options.ftickssyslogfacility,
  19. - LOG_TYPE_FTICKS);
  20. - free(options.ftickssyslogfacility);
  21. - }
  22. -#endif
  23. + if (options.ftickssyslogfacility) {
  24. + debug_set_destination(options.ftickssyslogfacility,
  25. + LOG_TYPE_FTICKS);
  26. + free(options.ftickssyslogfacility);
  27. }
  28. +#endif
  29. free(options.logdestination);
  30. if (!list_first(clconfs))