fix: 获取 k8s 树取消异常 返回空 优化错误日志 (#13077)

Co-authored-by: feng <1304903146@qq.com>
pull/13084/head
fit2bot 2024-04-19 17:41:41 +08:00 committed by GitHub
parent 64125051df
commit 59f9a4f369
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -88,8 +88,7 @@ class KubernetesClient:
try:
data = getattr(self, func_name)(*args)
except Exception as e:
logger.error(e)
raise e
logger.error(f'K8S tree get {tp} error: {e}')
if self.server:
self.server.stop()