Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | ippool: always log to syslog |
| 2 | |
| 3 | Even when running in the foreground, send log messages to syslog. |
| 4 | |
| 5 | Upstream-Status: Inappropriate [embedded specific] |
| 6 | |
| 7 | Signed-off-by: Joe Slater <jslater@windriver.com> |
| 8 | |
| 9 | |
| 10 | --- a/ippool_main.c |
| 11 | +++ b/ippool_main.c |
| 12 | @@ -251,9 +251,8 @@ void ippool_vlog(int level, const char * |
| 13 | if (ippool_opt_nodaemon) { |
| 14 | vprintf(fmt, ap); |
| 15 | printf("\n"); |
| 16 | - } else { |
| 17 | - vsyslog(level, fmt, ap); |
| 18 | } |
| 19 | + vsyslog(level, fmt, ap); |
| 20 | DMALLOC_VMESSAGE(fmt, ap); |
| 21 | } |
| 22 | |