Skip to content

Commit

Permalink
delete some unnecessary error logs and fix release.yml bug (FISCO-BCO…
Browse files Browse the repository at this point in the history
  • Loading branch information
wenlinlee authored Apr 19, 2024
1 parent 9506939 commit 16142f3
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
jobs:
compile_macOS_release:
name: upload standard binary of macOS
runs-on: macos-12
runs-on: macos-13
# runs-on: self-hosted-mac
# if: startsWith(github.ref,'v2')
steps:
Expand Down
4 changes: 2 additions & 2 deletions bcos-boostssl/test/exec/echo_client_sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ void sendMessage(std::shared_ptr<MessageFace> _msg, std::shared_ptr<WsService> _
{
TEST_LOG(WARNING, "TEST_CLIENT_MODULE")
<< LOG_BADGE(" [Main] ===>>>> ") << LOG_DESC("callback response error")
<< LOG_KV("errorCode", _error->errorCode())
<< LOG_KV("errorMessage", _error->errorMessage());
<< LOG_KV("code", _error->errorCode())
<< LOG_KV("message", _error->errorMessage());
return;
}
BCOS_LOG(INFO) << LOG_DESC("receiveResponse, timecost:") << (utcTime() - startT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ std::pair<bool, bytes> bcos::crypto::ed25519Recover(Hash::Ptr _hashImpl, bytesCo
catch (const std::exception& e)
{
CRYPTO_LOG(WARNING) << LOG_DESC("ed25519Recover failed")
<< LOG_KV("error", boost::diagnostic_information(e));
<< LOG_KV("message", boost::diagnostic_information(e));
}
return {false, {}};
}
Expand Down
8 changes: 4 additions & 4 deletions bcos-crypto/bcos-crypto/signature/hsmSM2/HsmSM2Crypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ std::shared_ptr<bytes> HsmSM2Crypto::sign(
if (code != SDR_OK)
{
CRYPTO_LOG(ERROR) << "[HSMSignature::sign] ERROR of Sign"
<< LOG_KV("error", provider.GetErrorMessage(code));
<< LOG_KV("message", provider.GetErrorMessage(code));
return nullptr;
}

Expand Down Expand Up @@ -130,7 +130,7 @@ bool HsmSM2Crypto::verify(
if (code != SDR_OK)
{
CRYPTO_LOG(ERROR) << "[HSMSignature::verify] ERROR of Hash"
<< LOG_KV("error", provider.GetErrorMessage(code));
<< LOG_KV("message", provider.GetErrorMessage(code));
return false;
}

Expand All @@ -139,7 +139,7 @@ bool HsmSM2Crypto::verify(
if (code != SDR_OK)
{
CRYPTO_LOG(ERROR) << "[HSMSignature::verify] ERROR of Verify"
<< LOG_KV("error", provider.GetErrorMessage(code));
<< LOG_KV("message", provider.GetErrorMessage(code));
return false;
}
return true;
Expand Down Expand Up @@ -184,7 +184,7 @@ std::pair<bool, bytes> HsmSM2Crypto::recoverAddress(Hash::Ptr _hashImpl, bytesCo
catch (const std::exception& e)
{
CRYPTO_LOG(WARNING) << LOG_DESC("Hsm SM2 recoverAddress failed")
<< LOG_KV("error", boost::diagnostic_information(e));
<< LOG_KV("message", boost::diagnostic_information(e));
}
return {false, {}};
}
Expand Down
2 changes: 1 addition & 1 deletion bcos-crypto/bcos-crypto/signature/sm2/SM2Crypto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ std::pair<bool, bytes> SM2Crypto::recoverAddress(Hash::Ptr _hashImpl, bytesConst
catch (const std::exception& e)
{
CRYPTO_LOG(WARNING) << LOG_DESC("sm2Recover failed")
<< LOG_KV("error", boost::diagnostic_information(e));
<< LOG_KV("message", boost::diagnostic_information(e));
}
return {false, {}};
}
Expand Down
2 changes: 1 addition & 1 deletion bcos-executor/src/precompiled/ShardingPrecompiled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void ShardingPrecompiled::makeShard(
{
int32_t code;
codec.decode(ref(_callParameters->execResult()), code);
message = "errorCode: " + std::to_string(code);
message = "code: " + std::to_string(code);
}

PRECOMPILED_LOG(WARNING) << LOG_BADGE("ShardPrecompiled") << LOG_DESC("BFS makeDir error: ")
Expand Down
4 changes: 2 additions & 2 deletions bcos-gateway/bcos-gateway/libnetwork/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ void Session::drop(DisconnectReason _reason)
if (error && error != boost::asio::error::operation_aborted)
{
SESSION_LOG(WARNING)
<< "[drop] shutdown timer error" << LOG_KV("errorValue", error.value())
<< "[drop] shutdown timer failed" << LOG_KV("failedValue", error.value())
<< LOG_KV("message", error.message());
}
/// force to shutdown when timeout
Expand All @@ -466,7 +466,7 @@ void Session::drop(DisconnectReason _reason)
if (error)
{
SESSION_LOG(INFO)
<< "[drop] shutdown failed " << LOG_KV("errorValue", error.value())
<< "[drop] shutdown failed " << LOG_KV("failedValue", error.value())
<< LOG_KV("message", error.message());
}
/// force to close the socket
Expand Down
4 changes: 2 additions & 2 deletions bcos-gateway/bcos-gateway/libp2p/Service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void Service::heartBeat()
m_timer->async_wait([self](const boost::system::error_code& error) {
if (error)
{
SERVICE_LOG(WARNING) << "timer canceled" << LOG_KV("errorCode", error);
SERVICE_LOG(WARNING) << "timer canceled" << LOG_KV("code", error);
return;
}
auto service = self.lock();
Expand Down Expand Up @@ -271,7 +271,7 @@ void Service::onDisconnect(NetworkException e, P2PSession::Ptr p2pSession)

if (e.errorCode() == P2PExceptionType::DuplicateSession)
return;
SERVICE_LOG(INFO) << LOG_DESC("onDisconnect") << LOG_KV("errorCode", e.errorCode())
SERVICE_LOG(INFO) << LOG_DESC("onDisconnect") << LOG_KV("code", e.errorCode())
<< LOG_KV("what", boost::diagnostic_information(e));
RecursiveGuard l(x_nodes);
for (auto& it : m_staticNodes)
Expand Down
4 changes: 2 additions & 2 deletions bcos-scheduler/src/SchedulerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ void SchedulerImpl::executeBlockInternal(bcos::protocol::Block::Ptr block, bool
SCHEDULER_LOG(DEBUG) << METRIC << BLOCK_NUMBER(requestBlockNumber)
<< "ExecuteBlock response"

<< LOG_KV(error ? "error" : "ok", error ? error->what() : "ok");
<< LOG_KV(error ? "failed" : "ok", error ? error->what() : "ok");

_callback(error == nullptr ? nullptr : std::move(error), std::move(blockHeader), _sysBlock);
};
Expand Down Expand Up @@ -477,7 +477,7 @@ void SchedulerImpl::commitBlock(bcos::protocol::BlockHeader::Ptr header,
bcos::Error::Ptr&& error, bcos::ledger::LedgerConfig::Ptr&& config) {
__itt_frame_end_v3(ITT_DOMAIN_SCHEDULER_COMMIT, nullptr);
SCHEDULER_LOG(DEBUG) << METRIC << BLOCK_NUMBER(requestBlockNumber) << "CommitBlock response"
<< LOG_KV(error ? "error" : "ok", error ? error->what() : "ok");
<< LOG_KV(error ? "failed" : "ok", error ? error->what() : "ok");
_callback(error == nullptr ? nullptr : std::move(error), std::move(config));
};

Expand Down
6 changes: 3 additions & 3 deletions bcos-sdk/sample/tx/deploy_hello.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ int main(int argc, char** argv)
[&p](bcos::Error::Ptr _error, std::shared_ptr<bcos::bytes> _resp) {
if (_error && _error->errorCode() != 0)
{
std::cout << LOG_DESC(" [DeployHello] send transaction response error")
<< LOG_KV("errorCode", _error->errorCode())
<< LOG_KV("errorMessage", _error->errorMessage()) << std::endl;
std::cout << LOG_DESC(" [DeployHello] send transaction response failed")
<< LOG_KV("code", _error->errorCode())
<< LOG_KV("message", _error->errorMessage()) << std::endl;
}
else
{
Expand Down
12 changes: 6 additions & 6 deletions bcos-sdk/sample/tx/hello_perf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ int main(int argc, char** argv)
[&contractAddress, &p](bcos::Error::Ptr _error, std::shared_ptr<bcos::bytes> _resp) {
if (_error && _error->errorCode() != 0)
{
std::cout << LOG_DESC(" [DeployHello] send transaction response error")
<< LOG_KV("errorCode", _error->errorCode())
<< LOG_KV("errorMessage", _error->errorMessage()) << std::endl;
std::cout << LOG_DESC(" [DeployHello] send transaction response failed")
<< LOG_KV("code", _error->errorCode())
<< LOG_KV("message", _error->errorMessage()) << std::endl;
exit(0);
}
else
Expand Down Expand Up @@ -257,9 +257,9 @@ int main(int argc, char** argv)
recvRateReporter->update(1, true);
if (_error && _error->errorCode() != 0)
{
std::cout << LOG_DESC(" [DeployHello] send transaction response error")
<< LOG_KV("errorCode", _error->errorCode())
<< LOG_KV("errorMessage", _error->errorMessage()) << std::endl;
std::cout << LOG_DESC(" [DeployHello] send transaction response failed")
<< LOG_KV("code", _error->errorCode())
<< LOG_KV("message", _error->errorMessage()) << std::endl;
}
});
}
Expand Down
4 changes: 2 additions & 2 deletions tools/BcosAirBuilder/build_chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ supported_consensus=(pbft rpbft)

# for pro or max default setting
bcos_builder_package=BcosBuilder.tgz
bcos_builder_version=v3.7.1
bcos_builder_version=v3.7.2
use_exist_binary="false"
download_specific_binary_flag="false"
download_service_binary_type="cdn"
service_binary_version="v3.7.1"
service_binary_version="v3.7.2"
download_service_binary_path="binary"
download_service_binary_path_flag="false"
service_type="all"
Expand Down
2 changes: 1 addition & 1 deletion tools/BcosBuilder/src/common/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class CommandInfo:
network_add_vxlan = "add-vxlan"
download_binary = "download_binary"
download_type = ["cdn", "git"]
default_binary_version = "v3.6.0"
default_binary_version = "v3.7.2"
command_list = [gen_config, upload, deploy,
upgrade, undeploy, expand, start, stop]
service_command_list_str = ', '.join(command_list)
Expand Down

0 comments on commit 16142f3

Please sign in to comment.