diff options
author | Rodrigo Ramírez Norambuena <a@rodrigoramirez.com> | 2016-02-09 23:13:07 -0300 |
---|---|---|
committer | Rodrigo Ramírez Norambuena <a@rodrigoramirez.com> | 2016-02-10 14:41:09 -0300 |
commit | fd668670b5de29554780ad9ccec3cce7c2fdcb93 (patch) | |
tree | b4590b3d35278788d077cafb8e80070c70278da2 /res/res_config_pgsql.c | |
parent | 68643f83cd213e87619fa2e0d11ef38c4b2d6b6a (diff) |
res_config_pgsql: Show error message in reload if not connected.
Change-Id: I9290115a1aaadb589eb1d02eaeb502eec01b31fa
Diffstat (limited to 'res/res_config_pgsql.c')
-rw-r--r-- | res/res_config_pgsql.c | 3 |
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; } |