diff options
author | 2025-01-14 14:16:30 +0000 | |
---|---|---|
committer | 2025-01-15 10:32:19 +0000 | |
commit | d278ef0c993aeaa4b60f8f1fa11bc93c2861fd0c (patch) | |
tree | 2756fcdddec96fddeab87b4d0b045ce3aa09ee44 | |
parent | 90f9a9890c274c9f2c63ddec7203712c9b5c4459 (diff) |
Small fixes after dependency uplift for spring and logback
Issue-ID: POLICY-5235
Change-Id: I01f85ebc53948ffdd78e26c0c5e1bb6e55157142
Signed-off-by: adheli.tavares <adheli.tavares@est.tech>
-rw-r--r-- | main/pom.xml | 7 | ||||
-rw-r--r-- | main/src/main/java/org/onap/policy/api/main/rest/CommonRestController.java | 4 |
2 files changed, 3 insertions, 8 deletions
diff --git a/main/pom.xml b/main/pom.xml index 86be7696..eb279e8d 100644 --- a/main/pom.xml +++ b/main/pom.xml @@ -4,7 +4,7 @@ Modified Copyright (C) 2018 Samsung Electronics Co., Ltd. Copyright (C) 2019,2021 AT&T Intellectual Property. All rights reserved. Modifications Copyright (C) 2020-2023 Bell Canada. - Modifications Copyright (C) 2022-2024 Nordix Foundation. + Modifications Copyright (C) 2022-2025 Nordix Foundation. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -180,11 +180,6 @@ <scope>runtime</scope> </dependency> <dependency> - <groupId>io.netty</groupId> - <artifactId>netty-codec</artifactId> - <scope>runtime</scope> - </dependency> - <dependency> <groupId>org.hibernate.orm</groupId> <artifactId>hibernate-core</artifactId> <scope>runtime</scope> diff --git a/main/src/main/java/org/onap/policy/api/main/rest/CommonRestController.java b/main/src/main/java/org/onap/policy/api/main/rest/CommonRestController.java index 97fdb242..ec4dfe2b 100644 --- a/main/src/main/java/org/onap/policy/api/main/rest/CommonRestController.java +++ b/main/src/main/java/org/onap/policy/api/main/rest/CommonRestController.java @@ -4,7 +4,7 @@ * ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* Modifications Copyright (C) 2022 Bell Canada. All rights reserved.
- * Modifications Copyright (C) 2022-2024 Nordix Foundation.
+ * Modifications Copyright (C) 2022-2025 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -132,7 +132,7 @@ public class CommonRestController { @ExceptionHandler(value = {PolicyApiRuntimeException.class})
protected ResponseEntity<Object> handleException(PolicyApiRuntimeException ex, WebRequest req) {
- LOGGER.warn(ex.getMessage(), ex.getCause());
+ LOGGER.warn(ex.getErrorResponse().getErrorMessage(), ex.getCause());
final var requestId = req.getHeader(CommonRestController.REQUEST_ID_NAME);
final var status = ex.getErrorResponse().getResponseCode().getStatusCode();
return CommonRestController.addLoggingHeaders(
|