pgbench: Correct log level of message output when socket wait method fails.
authorFujii Masao
Wed, 29 Sep 2021 11:35:00 +0000 (20:35 +0900)
committerFujii Masao
Wed, 29 Sep 2021 12:47:25 +0000 (21:47 +0900)
commit8021334d3710cb030ed1b6de764a0bb2233e5265
tree434e5c41fadda97b4240d51491535fb56651c9aa
parent2cf9cf5d7b5e66202389618a4c08945da352b35c
pgbench: Correct log level of message output when socket wait method fails.

The failure of socket wait method like "select()" doesn't terminate pgbench.
So the log level of error message when that failure happens should be ERROR.
But previously FATAL was used in that case.

Back-patch to v13 where pgbench started using common logging API.

Author: Yugo Nagata, Fabien COELHO
Reviewed-by: Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/20210617005934.8bd37bf72efd5f1b38e6f482@sraoss.co.jp
src/bin/pgbench/pgbench.c