From 0e0db3c8d009f8e07257b0192650bd90daf7d8b9 Mon Sep 17 00:00:00 2001 From: Benjamin Herbert Date: Tue, 15 Jul 2025 14:52:58 +0200 Subject: [PATCH] chore: fix logging statements --- backup/pvc/bin/restore.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backup/pvc/bin/restore.sh b/backup/pvc/bin/restore.sh index b9a71a48..f10e2e75 100755 --- a/backup/pvc/bin/restore.sh +++ b/backup/pvc/bin/restore.sh @@ -42,11 +42,11 @@ fi tar $OPTS -C "${JENKINS_HOME}" -xf "${BACKUP_DIR}/${BACKUP_NUMBER}.${EXT}" || ret=$? if [[ "$ret" -eq 0 ]]; then - _log "INFO" "[backup] backup ${BACKUP_NUMBER} was completed without warnings" + _log "INFO" "[restore] restore ${BACKUP_NUMBER} was completed without warnings" elif [[ "$ret" -eq 1 ]]; then - _log "INFO" "[backup] backup ${BACKUP_NUMBER} was completed with some warnings" + _log "INFO" "[restore] restore ${BACKUP_NUMBER} was completed with some warnings" else - _log "ERROR" "[backup] backup ${BACKUP_NUMBER} failed with error code: $ret" + _log "ERROR" "[restore] restore ${BACKUP_NUMBER} failed with error code: $ret" exit "$ret" fi