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. 12
      src/ckdb_dbio.c

2
src/ckdb.h

@ -58,7 +58,7 @@
#define DB_VLOCK "1"
#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_HERE __FILE__, __func__, __LINE__

12
src/ckdb_dbio.c

@ -503,16 +503,16 @@ bool _CKPQConn(PGconn **conn, WHERE_FFL_ARGS)
{
if (*conn == NULL) {
if (connect_dis == false) {
LOGEMERG("%s() ERR already (%s/%s/%d)" WHERE_FFL
LOGNOTICE("%s() already (%s/%s/%d)" WHERE_FFL
#if LOCK_CHECK
" @%s"
" @%s"
#endif
, __func__, connect_file, connect_func,
connect_line, WHERE_FFL_PASS
, __func__, connect_file, connect_func,
connect_line, WHERE_FFL_PASS
#if LOCK_CHECK
, my_thread_name
, my_thread_name
#endif
);
);
}
if (!pgdb_paused) {
LOGDEBUG("%s(): connecting", __func__);

Loading…
Cancel
Save