From 6024cceed6a018d6722e96d5440ca43f68e1dcd6 Mon Sep 17 00:00:00 2001 From: "k.kedron" Date: Wed, 5 Jun 2019 13:48:01 +0200 Subject: Improve the test coverage of OnapLoggerAudit and fix log method in OnapLoogerBase. Improve the unit test in OnapLoggerAudit and OnapLoogerBase. Fix the log method for DEBUG LogLevel. Issue-ID: SDC-2327 Signed-off-by: Krystian Kedron Change-Id: Iff9773dbf108020accd9f65ea89b9cdcb1dd2c0e --- .../onap/sdc/common/onaplog/OnapLoggerBase.java | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/main/java/org') diff --git a/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerBase.java b/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerBase.java index ca79843..c1e879e 100644 --- a/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerBase.java +++ b/src/main/java/org/onap/sdc/common/onaplog/OnapLoggerBase.java @@ -1,3 +1,23 @@ +/*- + * ============LICENSE_START=============================================== + * ONAP SDC + * ======================================================================== + * Modifications Copyright (c) 2019 Samsung + * ======================================================================== + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END================================================= +*/ + package org.onap.sdc.common.onaplog; import org.onap.sdc.common.onaplog.Enums.LogLevel; @@ -54,7 +74,7 @@ public abstract class OnapLoggerBase implements IOnapLogger { } if (errorLevel.equals(LogLevel.DEBUG)) { - logger.info(myMarker, message, args); + logger.debug(myMarker, message, args); } } -- cgit 1.2.3-korg