logger: No need for appending error message, err() already does this

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2021-01-25 00:11:43 +01:00
parent ea2565ce4e
commit 406e4299a1

View File

@ -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;