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

@ -77,6 +77,9 @@
<logger name="com.sun.jersey.spi.spring" level="ERROR"/> <logger name="com.sun.jersey.spi.spring" level="ERROR"/>
<logger name="org.springframework" 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 Logger for capturing user events. We do not want to propagate these
log events to the root logger. These messages are only sent to the log events to the root logger. These messages are only sent to the

View File

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