fix: traceback if unexpected error
This commit is contained in:
@@ -109,7 +109,7 @@ async def watch_nodes(v1, external_ips_update_queue):
|
|||||||
logger.info("Watch task was cancelled.")
|
logger.info("Watch task was cancelled.")
|
||||||
break
|
break
|
||||||
except Exception as e:
|
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)
|
await asyncio.sleep(5)
|
||||||
|
|
||||||
|
|
||||||
@@ -144,7 +144,7 @@ async def watch_services(v1, external_ips_update_queue):
|
|||||||
logger.info("Watch task was cancelled.")
|
logger.info("Watch task was cancelled.")
|
||||||
break
|
break
|
||||||
except Exception as e:
|
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)
|
await asyncio.sleep(5)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user