logger: No need for appending error message, err() already does this
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
parent
ea2565ce4e
commit
406e4299a1
@ -297,7 +297,7 @@ int main(int argc, char *argv[])
|
|||||||
log_opts |= LOG_NLOG;
|
log_opts |= LOG_NLOG;
|
||||||
fp = fopen(logfile, "a");
|
fp = fopen(logfile, "a");
|
||||||
if (!fp)
|
if (!fp)
|
||||||
err(1, "Failed opening %s for writing: %m", logfile);
|
err(1, "Failed opening %s for writing", logfile);
|
||||||
} else {
|
} else {
|
||||||
log_opts |= LOG_STDOUT;
|
log_opts |= LOG_STDOUT;
|
||||||
fp = stdout;
|
fp = stdout;
|
||||||
|
Loading…
Reference in New Issue
Block a user