mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:14:13 +08:00
mdbx-tests: minor refine log-levels.
This commit is contained in:
parent
a2ec7f2be1
commit
9ccd551ebc
@ -26,7 +26,7 @@ void actor_params::set_defaults(void) {
|
|||||||
pathname_log = "";
|
pathname_log = "";
|
||||||
loglevel =
|
loglevel =
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
logging::notice;
|
logging::info;
|
||||||
#else
|
#else
|
||||||
logging::trace;
|
logging::trace;
|
||||||
#endif
|
#endif
|
||||||
|
@ -123,7 +123,7 @@ void testcase::db_prepare() {
|
|||||||
if (config.params.loglevel <= logging::verbose)
|
if (config.params.loglevel <= logging::verbose)
|
||||||
mdbx_dbg_opts |= MDBX_DBG_PRINT;
|
mdbx_dbg_opts |= MDBX_DBG_PRINT;
|
||||||
int rc = mdbx_setup_debug(mdbx_dbg_opts, mdbx_logger);
|
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;
|
MDBX_env *env = nullptr;
|
||||||
rc = mdbx_env_create(&env);
|
rc = mdbx_env_create(&env);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user