Browse Source

ckdb - demote successful missing workerstatus/worker messages to notice

master
kanoi 9 years ago
parent
commit
30376deb94
  1. 2
      src/ckdb.h
  2. 9
      src/ckdb_data.c

2
src/ckdb.h

@ -55,7 +55,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "1.0.2" #define DB_VERSION "1.0.2"
#define CKDB_VERSION DB_VERSION"-1.225" #define CKDB_VERSION DB_VERSION"-1.226"
#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__

9
src/ckdb_data.c

@ -882,12 +882,17 @@ K_ITEM *_find_create_workerstatus(int64_t userid, char *workername,
K_WUNLOCK(workerstatus_free); K_WUNLOCK(workerstatus_free);
if (ws_err) { if (ws_err) {
LOGERR("%s(): CREATED Missing workerstatus %"PRId64"/%s" LOGNOTICE("%s(): CREATED Missing workerstatus"
" %"PRId64"/%s"
WHERE_FFL WHERE_FFL, WHERE_FFL WHERE_FFL,
__func__, userid, workername, __func__, userid, workername,
file2, func2, line2, WHERE_FFL_PASS); file2, func2, line2, WHERE_FFL_PASS);
if (w_err) { if (w_err) {
LOGERR("%s(): %s Missing worker %"PRId64"/%s", int sta = LOG_ERR;
if (w_item)
sta = LOG_NOTICE;
LOGMSG(sta,
"%s(): %s Missing worker %"PRId64"/%s",
__func__, __func__,
w_item ? "CREATED" : "FAILED TO CREATE", w_item ? "CREATED" : "FAILED TO CREATE",
userid, workername); userid, workername);

Loading…
Cancel
Save