Commit 57015dd7 authored by MANISH KUMAR's avatar MANISH KUMAR
Browse files

Added ex for getting stackTrace

parent a822c990
Pipeline #24318 failed with stage
in 2 minutes
......@@ -36,6 +36,7 @@ import;
import java.nio.charset.StandardCharsets;
import java.text.MessageFormat;
import java.time.Duration;
import java.time.OffsetDateTime;
......@@ -323,7 +324,7 @@ public class BlobStore {
* @return Instance of AppException
private AppException handleBlobStoreException(final int status, final String errorMessage, final Exception ex) {
CoreLoggerFactory.getInstance().getLogger(LOGGER_NAME).warn("{} {}", LOG_PREFIX, errorMessage);
CoreLoggerFactory.getInstance().getLogger(LOGGER_NAME).warn(MessageFormat.format("{0} {1}", LOG_PREFIX, errorMessage), ex);
return new AppException(status, errorMessage, ex.getMessage(), ex);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment