File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/manager/impl Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -97,9 +97,13 @@ public synchronized void loadApiDocument() {
9797 LOG .info ("load api document No service registered." );
9898 return ;
9999 }
100- final Set <UpstreamInstance > currentServices = new HashSet <>(serviceList );
101- LOG .info ("load api document, serviceList={}" , JsonUtils .toJson (currentServices ));
102- pullSwaggerDocService .pullApiDocument (currentServices );
100+ try {
101+ final Set <UpstreamInstance > currentServices = new HashSet <>(serviceList );
102+ LOG .info ("load api document, serviceList={}" , JsonUtils .toJson (currentServices ));
103+ pullSwaggerDocService .pullApiDocument (currentServices );
104+ } catch (Exception e ) {
105+ LOG .error ("load api document error" , e );
106+ }
103107 }
104108
105109 @ Override
You can’t perform that action at this time.
0 commit comments