yu199195 commented on code in PR #6016:
URL: https://github.com/apache/shenyu/pull/6016#discussion_r2068324968


##########
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/manager/impl/LoadServiceDocEntryImpl.java:
##########
@@ -97,9 +97,13 @@ public synchronized void loadApiDocument() {
             LOG.info("load api document No service registered.");
             return;
         }
-        final Set<UpstreamInstance> currentServices = new 
HashSet<>(serviceList);
-        LOG.info("load api document, serviceList={}", 
JsonUtils.toJson(currentServices));
-        pullSwaggerDocService.pullApiDocument(currentServices);
+        try {
+            final Set<UpstreamInstance> currentServices = new 
HashSet<>(serviceList);
+            LOG.info("load api document, serviceList={}", 
JsonUtils.toJson(currentServices));
+            pullSwaggerDocService.pullApiDocument(currentServices);
+        } catch (Exception e) {
+            LOG.error("load api document error", e);
+        }

Review Comment:
   alreay  add try catch ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to