mdbx-tests: minor refine log-levels.

This commit is contained in:
Leo Yuriev 2018-03-19 17:50:10 +03:00
parent a2ec7f2be1
commit 9ccd551ebc
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ void actor_params::set_defaults(void) {
pathname_log = "";
loglevel =
#ifdef NDEBUG
logging::notice;
logging::info;
#else
logging::trace;
#endif

View File

@ -123,7 +123,7 @@ void testcase::db_prepare() {
if (config.params.loglevel <= logging::verbose)
mdbx_dbg_opts |= MDBX_DBG_PRINT;
int rc = mdbx_setup_debug(mdbx_dbg_opts, mdbx_logger);
log_info("set mdbx debug-opts: 0x%02x", rc);
log_trace("set mdbx debug-opts: 0x%02x", rc);
MDBX_env *env = nullptr;
rc = mdbx_env_create(&env);