Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
System
Lib
cloud
azure
OS Core Lib Azure
Commits
57015dd7
Commit
57015dd7
authored
Feb 02, 2021
by
MANISH KUMAR
Browse files
Added ex for getting stackTrace
parent
a822c990
Pipeline
#24318
failed with stage
in 2 minutes
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/opengroup/osdu/azure/blobstorage/BlobStore.java
View file @
57015dd7
...
...
@@ -36,6 +36,7 @@ import java.io.ByteArrayOutputStream;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment