diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 78b7ec9d8fdf38fbc464d186fc2fee30511b7d0f..8f2357ca9880bb6e384c069e31df9c43d71ffe5d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -487,7 +487,7 @@ integration_test_docker:
         echo "Saving log for container $container"
         docker logs "${container}" >& "log/${container}.log"
       done
-      PGPASSWORD=password pg_dump --host=docker --username=postgres hdb | gzip > log/archiver-timescale-dump.txt.gz
+      PGPASSWORD=password pg_dump --host=docker --username=postgres hdb 2>log/archiver-timescale-dump.log | gzip > log/archiver-timescale-dump.txt.gz
 wheel_packaging:
   stage: packaging
   artifacts: