1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Log to the output file at any time with warnings and errors, instead of just when verbose mode is on.

This commit is contained in:
Con Kolivas 2011-07-28 19:55:54 +10:00
parent 5a64ebcca6
commit 53e05c6413

2
util.c
View File

@ -124,7 +124,7 @@ void vapplog(int prio, const char *fmt, va_list ap)
tm.tm_sec,
fmt);
/* Only output to stderr if it's not going to the screen as well */
if (opt_log_output && !isatty(fileno((FILE *)stderr))) {
if (!isatty(fileno((FILE *)stderr))) {
va_list apc;
va_copy(apc, ap);