Преглед изворни кода

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,
         Ok(b) => b,
         Err(e) => {
         Err(e) => {
             error!(
             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,
                 "[WASM] [{}] get_blockchain_time(): Internal error getting from blocks tree: {}", cid, e,
             );
             );
             return darkfi_sdk::error::DB_GET_FAILED
             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
     // Enforce function ACL
     if let Err(e) = acl_allow(env, &[ContractSection::Exec]) {
     if let Err(e) = acl_allow(env, &[ContractSection::Exec]) {
         error!(
         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,
             "[WASM] [{}] get_last_block_height(): Called in unauthorized section: {}", cid, e,
         );
         );
         return darkfi_sdk::error::CALLER_ACCESS_DENIED
         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,
         Ok(b) => b,
         Err(e) => {
         Err(e) => {
             error!(
             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,
                 "[WASM] [{}] get_last_block_height(): Internal error getting from blocks tree: {}", cid, e,
             );
             );
             return darkfi_sdk::error::DB_GET_FAILED
             return darkfi_sdk::error::DB_GET_FAILED