소스 검색

runtime/import/util: corrected some log targets

skoupidi 2 년 전
부모
커밋
0475a8e2d3
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/runtime/import/util.rs

+ 3 - 3
src/runtime/import/util.rs

@@ -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