From 0475a8e2d321f43f03de12c2076782947749cf29 Mon Sep 17 00:00:00 2001 From: skoupidi Date: Mon, 1 Apr 2024 13:25:29 +0300 Subject: [PATCH] runtime/import/util: corrected some log targets --- src/runtime/import/util.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/import/util.rs b/src/runtime/import/util.rs index 610ae9aa8..3f9456537 100644 --- a/src/runtime/import/util.rs +++ b/src/runtime/import/util.rs @@ -248,7 +248,7 @@ pub(crate) fn get_blockchain_time(mut ctx: FunctionEnvMut) -> 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) -> 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) -> 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