Closed willpander closed 6 months ago
try { var apiXml = Path.Combine(basePath, "Ape.Volo.Api.xml"); var commonXml = Path.Combine(basePath, "Ape.Volo.Common.xml"); var iBusinessXml = Path.Combine(basePath, "Ape.Volo.IBusiness.xml"); c.IncludeXmlComments(apiXml, true); c.IncludeXmlComments(commonXml, true); c.IncludeXmlComments(iBusinessXml, true); } catch (Exception ex) { Logger.Error("swaggerSetup启动失败\n" + ex.Message); }
开启加权小锁
c.OperationFilter
哦,只能是抛异常, Logger.Error("swaggerSetup启动失败\n" + ex.Message);这句要改
大佬,为什么SwaggerSetup这些里的日志不输出,controller里能正常输出,源码未做其他修改