Browse Source

ckdb - demote CKPQConn ERR to NOTICE - it's only for finding lost connections if they are happening

master
kanoi 8 years ago
parent
commit
7f5df515d2
  1. 2
      src/ckdb.h
  2. 2
      src/ckdb_dbio.c

2
src/ckdb.h

@ -58,7 +58,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "1.0.7" #define DB_VERSION "1.0.7"
#define CKDB_VERSION DB_VERSION"-2.715" #define CKDB_VERSION DB_VERSION"-2.716"
#define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__ #define WHERE_FFL_HERE __FILE__, __func__, __LINE__

2
src/ckdb_dbio.c

@ -503,7 +503,7 @@ bool _CKPQConn(PGconn **conn, WHERE_FFL_ARGS)
{ {
if (*conn == NULL) { if (*conn == NULL) {
if (connect_dis == false) { if (connect_dis == false) {
LOGEMERG("%s() ERR already (%s/%s/%d)" WHERE_FFL LOGNOTICE("%s() already (%s/%s/%d)" WHERE_FFL
#if LOCK_CHECK #if LOCK_CHECK
" @%s" " @%s"
#endif #endif

Loading…
Cancel
Save