소스 검색

chore: reduce noisy generic saga logging (#1477)

tsk 4 주 전
부모
커밋
a259241781
3개의 변경된 파일0개의 추가작업 그리고 19개의 파일을 삭제
  1. 0 8
      crates/cdk/src/mint/melt/melt_saga/mod.rs
  2. 0 5
      crates/cdk/src/mint/swap/swap_saga/compensation.rs
  3. 0 6
      crates/cdk/src/mint/swap/swap_saga/mod.rs

+ 0 - 8
crates/cdk/src/mint/melt/melt_saga/mod.rs

@@ -194,8 +194,6 @@ impl MeltSaga<Initial> {
         input_verification: Verification,
         payment_method: cdk_common::PaymentMethod,
     ) -> Result<MeltSaga<SetupComplete>, Error> {
-        tracing::info!("TX1: Setting up melt (verify + inputs + outputs)");
-
         let Verification {
             amount: input_amount,
             unit: input_unit,
@@ -487,8 +485,6 @@ impl MeltSaga<SetupComplete> {
         self,
         melt_request: &MeltRequest<QuoteId>,
     ) -> Result<(Self, SettlementDecision), Error> {
-        tracing::info!("Checking for internal settlement opportunity");
-
         let mut tx = self.db.begin_transaction().await?;
 
         let mut mint_quote = match tx
@@ -620,8 +616,6 @@ impl MeltSaga<SetupComplete> {
         self,
         settlement: SettlementDecision,
     ) -> Result<MeltSaga<PaymentConfirmed>, Error> {
-        tracing::info!("Making payment (external LN operation or internal settlement)");
-
         let payment_result = match settlement {
             SettlementDecision::Internal { amount } => {
                 tracing::info!(
@@ -867,8 +861,6 @@ impl MeltSaga<PaymentConfirmed> {
     /// - `UnitMismatch`: Failed to convert payment amount to quote unit
     #[instrument(skip_all)]
     pub async fn finalize(self) -> Result<MeltQuoteBolt11Response<QuoteId>, Error> {
-        tracing::info!("TX2: Finalizing melt (mark spent + change)");
-
         let total_spent = to_unit(
             self.state_data.payment_result.total_spent,
             &self.state_data.payment_result.unit,

+ 0 - 5
crates/cdk/src/mint/swap/swap_saga/compensation.rs

@@ -67,11 +67,6 @@ impl CompensatingAction for RemoveSwapSetup {
 
         tx.commit().await?;
 
-        tracing::info!(
-            "Successfully compensated swap and deleted saga {}",
-            self.operation_id
-        );
-
         Ok(())
     }
 

+ 0 - 6
crates/cdk/src/mint/swap/swap_saga/mod.rs

@@ -148,8 +148,6 @@ impl<'a> SwapSaga<'a, Initial> {
         quote_id: Option<QuoteId>,
         input_verification: crate::mint::Verification,
     ) -> Result<SwapSaga<'a, SetupComplete>, Error> {
-        tracing::info!("TX1: Setting up swap (verify + inputs + outputs)");
-
         let mut tx = self.db.begin_transaction().await?;
 
         // Verify balance within the transaction
@@ -313,8 +311,6 @@ impl<'a> SwapSaga<'a, SetupComplete> {
     /// - Propagates any errors from the blind signing operation
     #[instrument(skip_all)]
     pub async fn sign_outputs(self) -> Result<SwapSaga<'a, Signed>, Error> {
-        tracing::info!("Signing outputs (no DB)");
-
         match self
             .mint
             .blind_sign(self.state_data.blinded_messages.clone())
@@ -381,8 +377,6 @@ impl SwapSaga<'_, Signed> {
     /// - Propagates any database errors
     #[instrument(skip_all)]
     pub async fn finalize(self) -> Result<cdk_common::nuts::SwapResponse, Error> {
-        tracing::info!("TX2: Finalizing swap (signatures + mark spent)");
-
         let blinded_secrets: Vec<PublicKey> = self
             .state_data
             .blinded_messages