Skip to content

Commit

Permalink
cachedb_mongodb: Improve error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Feb 24, 2017
1 parent f4e1762 commit 5bd4930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/cachedb_mongodb/cachedb_mongodb_dbase.c
Expand Up @@ -199,8 +199,8 @@ int mongo_con_get(cachedb_con *con, str *attr, str *val)
ival = (unsigned long)value->value.v_int64;
break;
default:
LM_ERR("unsupported type for key %.*s!\n",
attr->len, attr->s);
LM_ERR("unsupported type %d for key %.*s!\n",
value->value_type, attr->len, attr->s);
goto out_err;
}

Expand Down

0 comments on commit 5bd4930

Please sign in to comment.