From 6643dc24da4be7e8aacec1558d715f999b210f13 Mon Sep 17 00:00:00 2001 From: EDDragonWolf Date: Wed, 21 Feb 2018 06:44:38 -0800 Subject: [PATCH] Added comment for tcpdump.sh and moved some messages to LOG_ERROR --- run_tcpdump.sh | 1 + src/supernode/DAPI_RPC_Client.h | 2 +- src/supernode/DAPI_RPC_Server.cpp | 6 +++--- src/supernode/PosProxy.cpp | 2 +- src/supernode/PosSaleObject.cpp | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/run_tcpdump.sh b/run_tcpdump.sh index 1648c7af4..1c23343fa 100755 --- a/run_tcpdump.sh +++ b/run_tcpdump.sh @@ -1 +1,2 @@ +# Make sure that eth0 interface exists and supernode is connecting to 28900 port. nohup sudo tcpdump -i eth0 'port 28900' -v &> ./logs/tcpdump28900.log & diff --git a/src/supernode/DAPI_RPC_Client.h b/src/supernode/DAPI_RPC_Client.h index f9a5d894d..290d919e9 100644 --- a/src/supernode/DAPI_RPC_Client.h +++ b/src/supernode/DAPI_RPC_Client.h @@ -66,7 +66,7 @@ namespace supernode { WasConnected = false; if(!invoke(rpc_command::DAPI_URI, rpc_command::DAPI_METHOD, req_param, timeout, std::addressof(pri))) { - LOG_PRINT_L4("Failed to invoke http request to " << call<<" URI: "<Process(ps, response_info.m_body) ) { LOG_PRINT_L4("Fail to process (ret false): "<Process(ps, response_info.m_body) ) { LOG_ERROR("Fail to process (ret false): "<Init(in)) { out.Result = ERROR_SALE_REQUEST_FAILED; - LOG_PRINT_L0("ERROR_SALE_REQUEST_FAILED"); + LOG_ERROR("ERROR_SALE_REQUEST_FAILED"); return false; } Add(data); diff --git a/src/supernode/PosSaleObject.cpp b/src/supernode/PosSaleObject.cpp index ad15516ac..b504d03ec 100644 --- a/src/supernode/PosSaleObject.cpp +++ b/src/supernode/PosSaleObject.cpp @@ -133,7 +133,7 @@ void supernode::PosSaleObject::ContinueInit() { inbr.SenderIP = m_DAPIServer->IP(); inbr.SenderPort = m_DAPIServer->Port(); if( !m_SubNetBroadcast.Send(dapi_call::PosProxySale, inbr, outv) || outv.empty() ) { - LOG_PRINT_L0("!Send dapi_call::PosProxySale"); + LOG_ERROR("!Send dapi_call::PosProxySale"); m_Status = NTransactionStatus::Fail; }