From b0011282a75d2c528f7854c4180d5f0378f72ea6 Mon Sep 17 00:00:00 2001 From: Arthur Zakirov Date: Wed, 20 Dec 2017 17:59:11 +0300 Subject: [PATCH] Fix logging query text to a file --- src/utils/pgut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/pgut.c b/src/utils/pgut.c index f2980dbd..8fb88971 100644 --- a/src/utils/pgut.c +++ b/src/utils/pgut.c @@ -1506,7 +1506,7 @@ pgut_execute(PGconn* conn, const char *query, int nParams, const char **params, elog(ERROR, "interrupted"); /* write query to elog if verbose */ - if (LOG_LEVEL_CONSOLE <= LOG) + if (LOG_LEVEL_CONSOLE <= LOG || LOG_LEVEL_FILE <= LOG) { int i;