chore: fix logging statements
This commit is contained in:
parent
94c74868ae
commit
0e0db3c8d0
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue