diff options
Diffstat (limited to 'src/backend/libpq/auth.c')
-rw-r--r-- | src/backend/libpq/auth.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index d132c5cb48b..3d809309685 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -2131,9 +2131,10 @@ pam_passwd_conv_proc(int num_msg, const struct pam_message **msg, reply[i].resp_retcode = PAM_SUCCESS; break; default: - elog(LOG, "unsupported PAM conversation %d/\"%s\"", - msg[i]->msg_style, - msg[i]->msg ? msg[i]->msg : "(none)"); + ereport(LOG, + (errmsg("unsupported PAM conversation %d/\"%s\"", + msg[i]->msg_style, + msg[i]->msg ? msg[i]->msg : "(none)"))); goto fail; } } |