Change wasm-c-api default log level (#1658)

Change wasm-c-api default log level to output less logs by default:
- For debug mode, change log level from 5 to 4
- For release mode, change log level from 3 to 2
This commit is contained in:
liang.he 2022-10-31 14:02:00 +08:00 committed by GitHub
parent 0f5b73ae67
commit dba9e52f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -308,10 +308,10 @@ wasm_engine_new_internal(mem_alloc_type_t type, const MemAllocOption *opts)
#ifndef NDEBUG
/*DEBUG*/
bh_log_set_verbose_level(5);
bh_log_set_verbose_level(BH_LOG_LEVEL_VERBOSE);
#else
/*VERBOSE*/
bh_log_set_verbose_level(3);
bh_log_set_verbose_level(BH_LOG_LEVEL_WARNING);
#endif
/* create wasm_engine_t */