runtime/import/util: corrected some log targets

This commit is contained in:
skoupidi
2024-04-01 13:25:29 +03:00
parent 254af116f4
commit 0475a8e2d3

View File

@@ -248,7 +248,7 @@ pub(crate) fn get_blockchain_time(mut ctx: FunctionEnvMut<Env>) -> i64 {
Ok(b) => b,
Err(e) => {
error!(
target: "runtime::db::get_blockchain_time",
target: "runtime::util::get_blockchain_time",
"[WASM] [{}] get_blockchain_time(): Internal error getting from blocks tree: {}", cid, e,
);
return darkfi_sdk::error::DB_GET_FAILED
@@ -285,7 +285,7 @@ pub(crate) fn get_last_block_height(mut ctx: FunctionEnvMut<Env>) -> i64 {
// Enforce function ACL
if let Err(e) = acl_allow(env, &[ContractSection::Exec]) {
error!(
target: "runtime::db::get_last_block_height",
target: "runtime::util::get_last_block_height",
"[WASM] [{}] get_last_block_height(): Called in unauthorized section: {}", cid, e,
);
return darkfi_sdk::error::CALLER_ACCESS_DENIED
@@ -296,7 +296,7 @@ pub(crate) fn get_last_block_height(mut ctx: FunctionEnvMut<Env>) -> i64 {
Ok(b) => b,
Err(e) => {
error!(
target: "runtime::db::get_last_block_height",
target: "runtime::util::get_last_block_height",
"[WASM] [{}] get_last_block_height(): Internal error getting from blocks tree: {}", cid, e,
);
return darkfi_sdk::error::DB_GET_FAILED