Verified Commit cb96fc11 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

log successful deletions on level info

parent 2f946fa0
Pipeline #37779 passed with stages
in 4 minutes and 2 seconds
......@@ -51,7 +51,7 @@ trait BinaryHandler {
}
)
if (result.isEmpty) {
logger.debug(
logger.info(
s"Deletion of binaries for record ${record.recordId} successful${if (record.dryRun) " (dry-run mode)" else ""}"
)
record.setBinariesStatus(
......
......@@ -213,7 +213,7 @@ trait MariadbClient {
Try(connection.commit())
}) match {
case Success(_) =>
logger.debug(s"MariaDB entries for record ${record.recordId} successfully deleted${if (record.dryRun) " (dry-run mode)" else ""}.")
logger.info(s"MariaDB entries for record ${record.recordId} successfully deleted${if (record.dryRun) " (dry-run mode)" else ""}.")
val updatedRecord = updateDigitalObjectResult(
record,
digitalObjectDeletionResult
......
......@@ -68,7 +68,7 @@ trait MemobaseElasticClient {
def deleteInES(record: ProcessedRecord): ProcessedRecord = {
client
.execute {
logger.info(s"Deleting ${record.recordId} in index $esIndex")
logger.info(s"Deleting ${record.recordId} in index $esIndex${if (record.dryRun) " (dry-run mode)" else ""}")
deleteById(esIndex, record.recordId)
}
.map {
......
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