summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authork.kedron <k.kedron@partner.samsung.com>2019-06-05 13:48:01 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-06-17 07:16:03 +0000
commit6024cceed6a018d6722e96d5440ca43f68e1dcd6 (patch)
treee4ab61fd2b41cb92d06abca334aadff4d5913ac0 /src/main/java
parent4b1861c863570af103e0c070e8834f97dfc35075 (diff)
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 <k.kedron@partner.samsung.com> Change-Id: Iff9773dbf108020accd9f65ea89b9cdcb1dd2c0e
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/onap/sdc/common/onaplog/OnapLoggerBase.java22
1 files changed, 21 insertions, 1 deletions
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);
}
}