debug: Add detailed exception logging for PoA submission failures
Add traceback and exception type logging to help diagnose why PoA
submission is failing silently and falling back to local blockchain.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
050f525b1b
commit
6f43d75155
@ -146,7 +146,11 @@ async def submit_simple_vote(
|
||||
)
|
||||
except Exception as e:
|
||||
# Fallback: Record in local blockchain
|
||||
logger.warning(f"PoA submission failed: {e}. Falling back to local blockchain.")
|
||||
import traceback
|
||||
logger.warning(f"PoA submission failed: {e}")
|
||||
logger.warning(f"Exception type: {type(e).__name__}")
|
||||
logger.warning(f"Traceback: {traceback.format_exc()}")
|
||||
logger.warning("Falling back to local blockchain.")
|
||||
try:
|
||||
blockchain = blockchain_manager.get_or_create_blockchain(election_id)
|
||||
block = blockchain.add_block(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user