mirror of
https://github.com/GOSTSec/ccminer
synced 2025-01-10 14:57:53 +00:00
debug: a new boolean to log or not json rpc data
This commit is contained in:
parent
1f99aae0ff
commit
1b8c3c12fa
@ -168,6 +168,7 @@ static const char *algo_names[] = {
|
||||
};
|
||||
|
||||
bool opt_debug = false;
|
||||
bool opt_debug_rpc = false;
|
||||
bool opt_protocol = false;
|
||||
bool opt_benchmark = false;
|
||||
bool want_longpoll = true;
|
||||
@ -522,6 +523,10 @@ static bool submit_upstream_work(CURL *curl, struct work *work)
|
||||
json_decref(val);
|
||||
}
|
||||
|
||||
if (opt_debug_rpc) {
|
||||
applog(LOG_DEBUG, "submit: %s", s);
|
||||
}
|
||||
|
||||
rc = true;
|
||||
|
||||
out:
|
||||
@ -1325,6 +1330,7 @@ static void parse_arg (int key, char *arg)
|
||||
break;
|
||||
case 'D':
|
||||
opt_debug = true;
|
||||
opt_debug_rpc = true;
|
||||
break;
|
||||
case 'p':
|
||||
free(rpc_pass);
|
||||
|
1
miner.h
1
miner.h
@ -285,6 +285,7 @@ struct work_restart {
|
||||
};
|
||||
|
||||
extern bool opt_debug;
|
||||
extern bool opt_debug_rpc;
|
||||
extern bool opt_protocol;
|
||||
extern int opt_timeout;
|
||||
extern bool want_longpoll;
|
||||
|
Loading…
Reference in New Issue
Block a user