fix: traceback if unexpected error

main
Malar Invention 2025-01-12 20:07:17 +05:30
parent d636f4b59a
commit a92fd0bff0
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ async def watch_nodes(v1, external_ips_update_queue):
logger.info("Watch task was cancelled.")
break
except Exception as e:
logger.error(f"Unexpected error in watch_nodes: {e}")
logger.error(f"Unexpected error in watch_nodes: {e}", exc_info=True)
await asyncio.sleep(5)
@ -144,7 +144,7 @@ async def watch_services(v1, external_ips_update_queue):
logger.info("Watch task was cancelled.")
break
except Exception as e:
logger.error(f"Unexpected error in watch_services: {e}")
logger.error(f"Unexpected error in watch_services: {e}", exc_info=True)
await asyncio.sleep(5)