Skip to content

Commit

Permalink
fix: logging in ContextSourceCaller
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasBousselin committed Dec 17, 2024
1 parent b9ef7b3 commit 7d4294a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ object ContextSourceCaller {
}.fold(
onSuccess = { it },
onFailure = { e ->
logger.warn("Error contacting CSR ${csr.id} at $path: ${e.message}")
logger.warn(e.stackTraceToString())
logger.warn("Badly formed data received from CSR ${csr.id} at $path: ${e.message}")
RevalidationFailedWarning(
"${csr.id} at $path returned badly formed data message: \"${e.cause}:${e.message}\"",
csr
Expand All @@ -73,8 +72,7 @@ object ContextSourceCaller {
}.fold(
onSuccess = { it },
onFailure = { e ->
logger.warn("Error contacting CSR ${csr.id} at $path: ${e.message}")
logger.warn(e.stackTraceToString())
logger.warn("Badly formed data received from CSR ${csr.id} at $path: ${e.message}")
RevalidationFailedWarning(
"${csr.id} at $path returned badly formed data message: \"${e.cause}:${e.message}\"",
csr
Expand Down

0 comments on commit 7d4294a

Please sign in to comment.