wallet_rpc_server: return false on error in set_log_categories

Reported by SmajeNz0
This commit is contained in:
moneromooo-monero 2019-04-24 17:28:55 +00:00
parent 968848a77b
commit 9074c0d8cf
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -4176,7 +4176,7 @@ namespace tools
{ {
er.code = WALLET_RPC_ERROR_CODE_INVALID_LOG_LEVEL; er.code = WALLET_RPC_ERROR_CODE_INVALID_LOG_LEVEL;
er.message = "Error: log level not valid"; er.message = "Error: log level not valid";
return true; return false;
} }
mlog_set_log_level(req.level); mlog_set_log_level(req.level);
return true; return true;