Преглед на файлове

refactor(hermes): remove warn log on benchmarks missed data (#2879)

Ali Behjati преди 4 месеца
родител
ревизия
0ba8633bea

+ 2 - 2
apps/hermes/server/Cargo.lock

@@ -1,6 +1,6 @@
 # This file is automatically @generated by Cargo.
 # It is not intended for manual editing.
-version = 3
+version = 4
 
 [[package]]
 name = "Inflector"
@@ -1880,7 +1880,7 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
 
 [[package]]
 name = "hermes"
-version = "0.10.3"
+version = "0.10.4"
 dependencies = [
  "anyhow",
  "async-trait",

+ 1 - 1
apps/hermes/server/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name        = "hermes"
-version     = "0.10.3"
+version     = "0.10.4"
 description = "Hermes is an agent that provides Verified Prices from the Pythnet Pyth Oracle."
 edition     = "2021"
 

+ 1 - 1
apps/hermes/server/src/api/rest/get_price_feed.rs

@@ -73,7 +73,7 @@ where
     )
     .await
     .map_err(|e| {
-        tracing::warn!(
+        tracing::debug!(
             "Error getting price feed {:?} with update data: {:?}",
             price_id,
             e

+ 1 - 1
apps/hermes/server/src/api/rest/get_vaa.rs

@@ -72,7 +72,7 @@ where
     )
     .await
     .map_err(|e| {
-        tracing::warn!(
+        tracing::debug!(
             "Error getting price feed {:?} with update data: {:?}",
             price_id,
             e

+ 1 - 1
apps/hermes/server/src/api/rest/get_vaa_ccip.rs

@@ -73,7 +73,7 @@ where
     )
     .await
     .map_err(|e| {
-        tracing::warn!(
+        tracing::debug!(
             "Error getting price feed {:?} with update data: {:?}",
             price_id,
             e

+ 1 - 1
apps/hermes/server/src/api/rest/latest_price_feeds.rs

@@ -72,7 +72,7 @@ where
         Aggregates::get_price_feeds_with_update_data(state, &price_ids, RequestTime::Latest)
             .await
             .map_err(|e| {
-                tracing::warn!(
+                tracing::debug!(
                     "Error getting price feeds {:?} with update data: {:?}",
                     price_ids,
                     e

+ 1 - 1
apps/hermes/server/src/api/rest/latest_vaas.rs

@@ -61,7 +61,7 @@ where
         Aggregates::get_price_feeds_with_update_data(state, &price_ids, RequestTime::Latest)
             .await
             .map_err(|e| {
-                tracing::warn!(
+                tracing::debug!(
                     "Error getting price feeds {:?} with update data: {:?}",
                     price_ids,
                     e

+ 1 - 1
apps/hermes/server/src/api/rest/v2/latest_price_updates.rs

@@ -79,7 +79,7 @@ where
         Aggregates::get_price_feeds_with_update_data(state, &price_ids, RequestTime::Latest)
             .await
             .map_err(|e| {
-                tracing::warn!(
+                tracing::debug!(
                     "Error getting price feeds {:?} with update data: {:?}",
                     price_ids,
                     e

+ 1 - 1
apps/hermes/server/src/api/rest/v2/latest_publisher_stake_caps.rs

@@ -59,7 +59,7 @@ where
         Aggregates::get_latest_publisher_stake_caps_with_update_data(state)
             .await
             .map_err(|e| {
-                tracing::warn!(
+                tracing::debug!(
                     "Error getting publisher stake caps with update data: {:?}",
                     e
                 );

+ 1 - 1
apps/hermes/server/src/api/rest/v2/latest_twaps.rs

@@ -114,7 +114,7 @@ where
     )
     .await
     .map_err(|e| {
-        tracing::warn!(
+        tracing::debug!(
             "Error getting TWAPs for price IDs {:?} with update data: {:?}",
             price_ids,
             e

+ 2 - 2
apps/hermes/server/src/state/aggregate.rs

@@ -664,7 +664,7 @@ where
     // to guarantee that the start and end messages are window_seconds apart
     let start_timestamp = if end_messages.is_empty() {
         // If there are no end messages, we can't calculate a TWAP
-        tracing::warn!(
+        tracing::debug!(
             price_ids = ?price_ids,
             time = ?end_time,
             "Could not find TWAP messages"
@@ -693,7 +693,7 @@ where
         .await?;
 
     if start_messages.is_empty() {
-        tracing::warn!(
+        tracing::debug!(
             price_ids = ?price_ids,
             time = ?start_time,
             "Could not find TWAP messages"