From fd668670b5de29554780ad9ccec3cce7c2fdcb93 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rodrigo=20Ram=C3=ADrez=20Norambuena?= Date: Tue, 9 Feb 2016 23:13:07 -0300 Subject: [PATCH] res_config_pgsql: Show error message in reload if not connected. Change-Id: I9290115a1aaadb589eb1d02eaeb502eec01b31fa --- res/res_config_pgsql.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c index d0e01bc8d4..77c52aa0b6 100644 --- a/res/res_config_pgsql.c +++ b/res/res_config_pgsql.c @@ -1351,6 +1351,9 @@ static int parse_config(int is_reload) config = ast_config_load(RES_CONFIG_PGSQL_CONF, config_flags); if (config == CONFIG_STATUS_FILEUNCHANGED) { + if (is_reload && pgsqlConn && PQstatus(pgsqlConn) != CONNECTION_OK) { + ast_log(LOG_WARNING, "PostgreSQL RealTime: Not connected\n"); + } return 0; } -- 2.47.2