[Asterisk-code-review] res config pgsql: Show error message in reload if not connec... (asterisk[master])
Mark Michelson
asteriskteam at digium.com
Wed Feb 10 15:35:01 CST 2016
Mark Michelson has submitted this change and it was merged.
Change subject: res_config_pgsql: Show error message in reload if not connected.
......................................................................
res_config_pgsql: Show error message in reload if not connected.
Change-Id: I9290115a1aaadb589eb1d02eaeb502eec01b31fa
---
M res/res_config_pgsql.c
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Mark Michelson: Looks good to me, approved
Anonymous Coward #1000019: Verified
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, but someone else must approve
diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c
index d0e01bc..77c52aa 100644
--- a/res/res_config_pgsql.c
+++ b/res/res_config_pgsql.c
@@ -1351,6 +1351,9 @@
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;
}
--
To view, visit https://gerrit.asterisk.org/2226
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I9290115a1aaadb589eb1d02eaeb502eec01b31fa
Gerrit-PatchSet: 3
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Rodrigo Ramirez Norambuena <a at rodrigoramirez.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: George Joseph <george.joseph at fairview5.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
More information about the asterisk-code-review
mailing list