style(数据源): 添加数据源校验失败日志,方便排查问题 (#17036)

This commit is contained in:
liuboF2c
2025-09-18 14:35:44 +08:00
committed by GitHub
parent 051e45d64c
commit f21c0bcd23

View File

@@ -1074,7 +1074,7 @@ public class DatasourceServer implements DatasourceApi {
}
coreDatasource.setStatus(status);
} catch (Exception e) {
DEException.throwException(e.getMessage());
DEException.throwException(e);
}
}
@@ -1155,6 +1155,7 @@ public class DatasourceServer implements DatasourceApi {
LicenseUtil.validate();
validate(datasource);
} catch (Exception e) {
LogUtil.error(e.getMessage(), e);
} finally {
syncDsIds.removeIf(id -> id.equals(datasource.getId()));
}
@@ -1372,10 +1373,10 @@ public class DatasourceServer implements DatasourceApi {
}
} catch (DEException e) {
datasourceDTO.setStatus("Error");
DEException.throwException(e.getMessage());
throw e;
} catch (Exception e) {
datasourceDTO.setStatus("Error");
DEException.throwException(e.getMessage());
DEException.throwException(e);
} finally {
coreDatasource.setStatus(datasourceDTO.getStatus());
dataSourceManage.innerEditStatus(coreDatasource);