diff options
Diffstat (limited to 'common/src')
-rw-r--r-- | common/src/main/java/org/openecomp/mso/logger/MsoLogger.java | 10 |
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 |