diff --git a/app/models/ckb_transaction.rb b/app/models/ckb_transaction.rb index 47a1e860c..0d0ba7222 100644 --- a/app/models/ckb_transaction.rb +++ b/app/models/ckb_transaction.rb @@ -437,8 +437,8 @@ def recover_dead_cell end def log_deletion_chain - unless tx_pending? - Rails.logger.info "Deleting #{self.class.name} with ID #{id} using #{caller}: #{as_json}" + if tx_committed? + Rails.logger.info "Deleting #{self.class.name} with tx_hash #{tx_hash}, block_number #{block_number} using #{caller}" end end end