Due to a scheduled upgrade to version 14.10, GitLab will be unavailabe on Monday 30.05., from 19:00 until 20:00.

Unverified Commit cd870524 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

print stacktrace if errors occur


Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent 9856ddd4
Pipeline #11908 passed with stages
in 11 minutes and 5 seconds
......@@ -69,8 +69,10 @@ object App extends scala.App with Logging {
logger.debug(s"Copying of object $id with type $fT successful")
case ProcessFailure(id, fT, a, ex) if a == "Delete" =>
logger.error(s"Deleting of object $id with type $fT failed: ${ex.getMessage}")
logger.info(ex.getStackTrace)
case ProcessFailure(id, fT, _, ex) =>
logger.error(s"Copying of object $id with type $fT failed: ${ex.getMessage}")
logger.info(ex.getStackTrace)
case ProcessIgnore(id, reason, warn) if warn =>
logger.warn(s"Ignoring object $id: $reason")
case ProcessIgnore(id, reason, _) =>
......
......@@ -48,7 +48,7 @@ object BinaryResourceMetadata {
* @return
*/
def build(msg: String, externalBaseUrl: String): Try[BinaryResourceMetadata] = Try {
val jsonldGraph = ujson.read(msg).obj("@graph").arr.value
val jsonldGraph = ujson.read(msg).obj("@graph").arr
buildKafkaMessage(jsonldGraph, externalBaseUrl)
}
......
Markdown is supported
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