diff options
author | ramverma <ram.krishna.verma@est.tech> | 2019-02-05 15:34:35 +0000 |
---|---|---|
committer | ramverma <ram.krishna.verma@est.tech> | 2019-02-05 15:34:35 +0000 |
commit | b5f4934afdc2601c925e83458d0e3d136c36cf1c (patch) | |
tree | 1217188ee7f3b6194362c5f9fea1acbc8c515a95 /forwarding/src/main | |
parent | 9255568baf91af0065a5fea1963d19ecfcf90f7a (diff) |
Change policy/distribution logging to slf4j
1) Changed logging from FlexLogger to SLF4J with logback
2) Fixed test cases of distribution REST endpoints having
infinite while loop
Change-Id: I1551873b3d348f9a7d2b4f8dfc3ae5dd6462bdb8
Issue-ID: POLICY-1346
Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Diffstat (limited to 'forwarding/src/main')
-rw-r--r-- | forwarding/src/main/java/org/onap/policy/distribution/forwarding/parameters/PolicyForwarderParameters.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/forwarding/src/main/java/org/onap/policy/distribution/forwarding/parameters/PolicyForwarderParameters.java b/forwarding/src/main/java/org/onap/policy/distribution/forwarding/parameters/PolicyForwarderParameters.java index 1334b3dd..e5c757b1 100644 --- a/forwarding/src/main/java/org/onap/policy/distribution/forwarding/parameters/PolicyForwarderParameters.java +++ b/forwarding/src/main/java/org/onap/policy/distribution/forwarding/parameters/PolicyForwarderParameters.java @@ -1,6 +1,7 @@ /*- * ============LICENSE_START======================================================= * Copyright (C) 2018 Ericsson. All rights reserved. + * Copyright (C) 2019 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,11 +21,11 @@ package org.onap.policy.distribution.forwarding.parameters; -import org.onap.policy.common.logging.flexlogger.FlexLogger; -import org.onap.policy.common.logging.flexlogger.Logger; import org.onap.policy.common.parameters.GroupValidationResult; import org.onap.policy.common.parameters.ParameterGroup; import org.onap.policy.common.parameters.ValidationStatus; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * Class to hold all the policy forwarder parameters. @@ -33,7 +34,7 @@ import org.onap.policy.common.parameters.ValidationStatus; */ public class PolicyForwarderParameters implements ParameterGroup { - private static final Logger LOGGER = FlexLogger.getLogger(PolicyForwarderParameters.class); + private static final Logger LOGGER = LoggerFactory.getLogger(PolicyForwarderParameters.class); private String forwarderType; private String forwarderClassName; |