aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authorrfree2monero <rfreemonero@op.pl>2015-04-10 16:13:57 +0200
committerrfree2 <rfree@op.pl>2015-04-10 16:54:21 +0200
commit32c19c6c3d677564d217ba31c16fdfc84b4faf80 (patch)
tree04ff7dcf43840494a356485a9f377aab14212e56 /src/rpc/core_rpc_server.cpp
parentMerge pull request #259 (diff)
downloadmonero-32c19c6c3d677564d217ba31c16fdfc84b4faf80.tar.xz
[fix] log level change. compilation: dns, tests
old unbound #warning does not block compilation unit tests build fine. Even though the RPC/P2P network type is required again
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 71eb5b753..8eeac489d 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -392,6 +392,8 @@ namespace cryptonote
else
{
epee::log_space::log_singletone::get_set_log_detalisation_level(true, req.level);
+ int otshell_utils_log_level = 100 - (req.level * 20);
+ gCurrentLogger.setDebugLevel(otshell_utils_log_level);
res.status = CORE_RPC_STATUS_OK;
}
return true;