diff options
author | Amichai Hemli <amichai.hemli@intl.att.com> | 2019-11-14 11:28:03 +0200 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-11-26 19:10:02 +0200 |
commit | 7f44447a90cff3175af2c44971b513c9ff521af6 (patch) | |
tree | 9d3b6196653d9c1219e21a0d08325714a8947812 /vid-app-common/src/main/java/org | |
parent | 52f31f5641ed47a2c44956c91d88faf227b8a896 (diff) |
improve debug logging format
Issue-ID: VID-646
Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com>
Change-Id: Ifa9105455dabdfad3179c36b516fe9833e0e6e60
Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com>
Diffstat (limited to 'vid-app-common/src/main/java/org')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/controller/LoggerController.java | 2 | ||||
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/controller/WebConfig.java | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/LoggerController.java b/vid-app-common/src/main/java/org/onap/vid/controller/LoggerController.java index 7233a67e3..f5b325b4a 100644 --- a/vid-app-common/src/main/java/org/onap/vid/controller/LoggerController.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/LoggerController.java @@ -66,7 +66,7 @@ public class LoggerController extends RestrictedBaseController { this.logfilePathCreator = logfilePathCreator; } - @GetMapping(value = "/{loggerName:audit|audit2019|error|metrics|metrics2019}") + @GetMapping(value = "/{loggerName:audit|audit2019|error|metrics|metrics2019|debug}") public String getLog(@PathVariable String loggerName, HttpServletRequest request, @RequestParam(value="limit", defaultValue = "5000") Integer limit) throws IOException { diff --git a/vid-app-common/src/main/java/org/onap/vid/controller/WebConfig.java b/vid-app-common/src/main/java/org/onap/vid/controller/WebConfig.java index c50578e82..cfb848007 100644 --- a/vid-app-common/src/main/java/org/onap/vid/controller/WebConfig.java +++ b/vid-app-common/src/main/java/org/onap/vid/controller/WebConfig.java @@ -69,6 +69,7 @@ import org.onap.vid.utils.SystemPropertiesWrapper; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.core.Ordered; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; import org.togglz.core.manager.FeatureManager; @@ -222,7 +223,8 @@ public class WebConfig implements WebMvcConfigurer { @Override public void addInterceptors(InterceptorRegistry registry) { - registry.addInterceptor(new VidLoggingInterceptor( - new ControllersUtils(new SystemPropertiesWrapper()))); + registry.addInterceptor( + new VidLoggingInterceptor(new ControllersUtils(new SystemPropertiesWrapper())) + ).order(Ordered.HIGHEST_PRECEDENCE); } } |