summaryrefslogtreecommitdiffstats
path: root/common/src
diff options
context:
space:
mode:
authorSeshu Kumar M <seshu.kumar.m@huawei.com>2018-04-16 12:46:19 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-16 12:46:19 +0000
commit5304d1554c35486203ca86a353d9059996430ad3 (patch)
treee65dd2a46cefc5a26ba3727d6a5c233c9eb34bab /common/src
parentc2b037bece932832773ee93ff42e376d110909f1 (diff)
parentb196509debdb43411abfcdc55b3ce87a0a30da6e (diff)
Merge "PnfReadyEventConsumer implementation"
Diffstat (limited to 'common/src')
-rw-r--r--common/src/main/java/org/openecomp/mso/logger/MsoLogger.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/src/main/java/org/openecomp/mso/logger/MsoLogger.java b/common/src/main/java/org/openecomp/mso/logger/MsoLogger.java
index 45f2746f0b..9f918805c0 100644
--- a/common/src/main/java/org/openecomp/mso/logger/MsoLogger.java
+++ b/common/src/main/java/org/openecomp/mso/logger/MsoLogger.java
@@ -279,6 +279,16 @@ public class MsoLogger {
logger.debug(msg, t);
}
+ /**
+ * Log error message with the details of the exception that caused the error.
+ * @param msg
+ * @param throwable
+ */
+ public void error(String msg, Throwable throwable) {
+ prepareMsg(ERROR_LEVEL);
+ logger.error(msg, throwable);
+ }
+
// Info methods
/**
* Record the Info event