Yedidyah Bar David has uploaded a new change for review. Change subject: packaging: engine-backup: filter errors in English ......................................................................
packaging: engine-backup: filter errors in English Prepend SET lc_messages = 'en_US.UTF-8' to dump so that we get the errors in English. Change-Id: I02f820651d572ac7015216137c1810c9401cea9b Bug-Url: https://bugzilla.redhat.com/1176457 Signed-off-by: Yedidyah Bar David <d...@redhat.com> --- M packaging/bin/engine-backup.sh 1 file changed, 9 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/93/37193/1 diff --git a/packaging/bin/engine-backup.sh b/packaging/bin/engine-backup.sh index f6450f0..b6a017e 100755 --- a/packaging/bin/engine-backup.sh +++ b/packaging/bin/engine-backup.sh @@ -690,7 +690,15 @@ local orig_user="$6" log "restoreDB: backupfile ${backupfile} user ${user} host ${host} port ${port} database ${database} orig_user ${orig_user}" local psqllog="${TEMP_FOLDER}/psql-restore-log" - bz_cat "${backupfile}" | \ + ( + cat << __EOF__ +# Get error messages in English, so that we can filter them below. +# TODO: Consider instead prepending '\set VERBOSITY verbose' +# and filter by codes instead of by texts. +SET lc_messages = 'en_US.UTF-8'; +__EOF__ + bz_cat "${backupfile}" + ) | \ PGPASSFILE="${MYPGPASS}" psql \ -w \ -U "${user}" \ -- To view, visit http://gerrit.ovirt.org/37193 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I02f820651d572ac7015216137c1810c9401cea9b Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Yedidyah Bar David <d...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches