瀏覽代碼

fix(pyth-lazer-agent): logging tweaks, cargo update, Dockerfile fix

Mike Rolish 5 月之前
父節點
當前提交
e27eb2b284
共有 3 個文件被更改,包括 229 次插入168 次删除
  1. 224 164
      apps/pyth-lazer-agent/Cargo.lock
  2. 1 1
      apps/pyth-lazer-agent/Dockerfile
  3. 4 3
      apps/pyth-lazer-agent/src/relayer_session.rs

文件差異過大導致無法顯示
+ 224 - 164
apps/pyth-lazer-agent/Cargo.lock


+ 1 - 1
apps/pyth-lazer-agent/Dockerfile

@@ -9,7 +9,7 @@ RUN cargo build --release
 
 FROM debian:12-slim
 
-RUN apt update && apt install -y libssl-dev && apt clean all
+RUN apt update && apt install -y libssl-dev ca-certificates && apt clean all
 
 COPY --from=builder /pyth-lazer-agent/target/release/pyth-lazer-agent /pyth-lazer-agent/
 COPY --from=builder /pyth-lazer-agent/config/* /pyth-lazer-agent/config/

+ 4 - 3
apps/pyth-lazer-agent/src/relayer_session.rs

@@ -94,8 +94,9 @@ impl RelayerSessionTask {
 
                     failure_count += 1;
                     let next_backoff = backoff.next_backoff().unwrap_or(max_interval);
-                    tracing::error!(
-                        "relayer session failed with error: {:?}, failure_count: {}; retrying in {:?}",
+                    tracing::warn!(
+                        "relayer session url: {} ended with error: {:?}, failure_count: {}; retrying in {:?}",
+                        self.url,
                         e,
                         failure_count,
                         next_backoff
@@ -148,7 +149,7 @@ impl RelayerSessionTask {
                             tracing::error!("Error receiving message from at relayer: {e:?}");
                         }
                         None => {
-                            tracing::error!("relayer connection closed");
+                            tracing::warn!("relayer connection closed url: {}", self.url);
                             bail!("relayer connection closed");
                         }
                     }

部分文件因文件數量過多而無法顯示