mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 01:44:23 +00:00
Move opt_quiet check to my_log_curses, so it works for curses-less builds
This commit is contained in:
parent
d2195bd04e
commit
80593c47fc
@ -87,7 +87,7 @@ static bool opt_benchmark;
|
||||
static bool have_longpoll;
|
||||
static bool want_per_device_stats;
|
||||
bool use_syslog;
|
||||
static bool opt_quiet;
|
||||
bool opt_quiet;
|
||||
static bool opt_realquiet;
|
||||
bool opt_loginput;
|
||||
const int opt_cutofftemp = 95;
|
||||
@ -1566,9 +1566,6 @@ void log_curses(int prio, const char *f, va_list ap)
|
||||
{
|
||||
bool high_prio;
|
||||
|
||||
if (opt_quiet && prio != LOG_ERR)
|
||||
return;
|
||||
|
||||
high_prio = (prio == LOG_WARNING || prio == LOG_ERR);
|
||||
|
||||
if (curses_active_locked()) {
|
||||
|
@ -20,6 +20,9 @@ int opt_log_level = LOG_NOTICE;
|
||||
|
||||
static void my_log_curses(__maybe_unused int prio, char *f, va_list ap)
|
||||
{
|
||||
if (opt_quiet && prio != LOG_ERR)
|
||||
return;
|
||||
|
||||
#ifdef HAVE_CURSES
|
||||
extern bool use_curses;
|
||||
if (use_curses)
|
||||
|
Loading…
x
Reference in New Issue
Block a user