mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +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:
parent
5a64ebcca6
commit
53e05c6413
2
util.c
2
util.c
@ -124,7 +124,7 @@ void vapplog(int prio, const char *fmt, va_list ap)
|
|||||||
tm.tm_sec,
|
tm.tm_sec,
|
||||||
fmt);
|
fmt);
|
||||||
/* Only output to stderr if it's not going to the screen as well */
|
/* 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_list apc;
|
||||||
|
|
||||||
va_copy(apc, ap);
|
va_copy(apc, ap);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user