[skip ci]Fix scripts to export error log (#10691)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/10693/head
zhuwenxing 2021-10-26 20:32:24 +08:00 committed by GitHub
parent 3ddf48b64c
commit fd5412c45a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ function error_exit {
then
mkdir logs
fi
docker-compose logs > ./logs/${Deploy_Dir}-${Task}-${current}.log
docker-compose logs > ./logs/${Deploy_Dir}-${Task}-${current}.log 2>&1
echo "log saved to $(pwd)/logs/${Deploy_Dir}-${Task}-${current}.log"
popd
exit 1