summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/res_config_pgsql.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c
index d0e01bc8d..77c52aa0b 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;
}