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

more logging

parent f348e4d1
Pipeline #20174 passed with stages
in 6 minutes and 57 seconds
......@@ -20,6 +20,7 @@
package ch.memobase.models
import ch.memobase.RecordUtils
import org.apache.logging.log4j.scala.Logging
import ujson.Value
import scala.collection.mutable.ArrayBuffer
......@@ -42,7 +43,7 @@ case class BinaryResourceMetadata(id: String,
eventType: Event) {
}
object BinaryResourceMetadata extends RecordUtils {
object BinaryResourceMetadata extends RecordUtils with Logging {
/**
* Builds a `BinaryResourceMetadata` object from a JSON-LD object pulled from Kafka topic
......@@ -58,6 +59,9 @@ object BinaryResourceMetadata extends RecordUtils {
}
private def buildDistributorUrl(longId: String, baseUrl: String, distributorHost: String, resourceType: MemobaseResource): String = {
logger.info(longId)
logger.info(baseUrl)
logger.info(distributorHost)
val pattern = raw"""$baseUrl/digital/([^/]+)-1""".r
pattern.findFirstMatchIn(longId) match {
case Some(m) =>
......
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