log more precisely

parent 85cf036e
Pipeline #23989 passed with stages
in 4 minutes and 28 seconds
......@@ -212,27 +212,27 @@ class KafkaTopology(private val settings: SettingsLoader) {
return updateRecord(value, ReportStatus.warning, digitalObjectMessage = "no valid locator url")
}
RemoteResourceHandler.isVimeoUrl(locator) -> {
log.info("Trying to download oembed metadata on vimeo for ${value.third.id}")
log.info("Trying to download oembed metadata ${if (downloadThumbnail) "and thumbnail " else ""}from vimeo ${value.third.id}")
val thumbnailHandler = this.previewImageHandler.getFromVimeo(locator, downloadThumbnail)
if (thumbnailHandler == null) {
log.warn("Download for ${value.third.id} failed!")
return updateRecord(
value,
ReportStatus.warning,
digitalObjectMessage = "couldn't download oembed metadata from youtube"
digitalObjectMessage = "couldn't download oembed metadata from vimeo"
)
}
thumbnailHandler
}
RemoteResourceHandler.isYoutubeUrl(locator) -> {
log.info("Trying to download oembed metadata on youtube for ${value.third.id}")
log.info("Trying to download oembed metadata ${if (downloadThumbnail) "and thumbnail " else ""}from youtube for ${value.third.id}")
val thumbnailHandler = this.previewImageHandler.getFromYoutube(locator, downloadThumbnail)
if (thumbnailHandler == null) {
log.warn("Download for ${value.third.id} failed!")
return updateRecord(
value,
ReportStatus.warning,
digitalObjectMessage = "couldn't download oembed metadata from vimeo"
digitalObjectMessage = "couldn't download oembed metadata from youtube"
)
}
thumbnailHandler
......
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