NIFI-574:

- Removing one redundant path annotation.
- Adjusting default logging due to known warning about other redundant path annotations that are required due to an issue with the version of Swagger being used.
This commit is contained in:
Matt Gilman 2015-05-02 15:18:41 -04:00
parent 997ed94653
commit be12203f8f
2 changed files with 3 additions and 1 deletions

View File

@ -76,6 +76,9 @@
<logger name="com.sun.jersey.spi.container.servlet.WebComponent" level="ERROR"/>
<logger name="com.sun.jersey.spi.spring" level="ERROR"/>
<logger name="org.springframework" level="ERROR"/>
<!-- Suppress non-error messages due to known warning about redundant path annotation (NIFI-574) -->
<logger name="com.sun.jersey.spi.inject.Errors" level="ERROR"/>
<!--
Logger for capturing user events. We do not want to propagate these

View File

@ -67,7 +67,6 @@ public class SystemDiagnosticsResource extends ApplicationResource {
@GET
@Consumes(MediaType.WILDCARD)
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
@Path("") // due to a bug in swagger
@PreAuthorize("hasAnyRole('ROLE_MONITOR', 'ROLE_DFM', 'ROLE_ADMIN')")
@ApiOperation(
value = "Gets the diagnostics for the system NiFi is running on",