enable logger by default

This commit is contained in:
vms 2020-09-24 13:06:12 +03:00
parent 58f14427f1
commit 8f41f5816b

View File

@ -263,7 +263,7 @@ fn from_raw_module_config(config: RawModuleConfig) -> Result<(String, ModuleConf
config.name,
ModuleConfig {
mem_pages_count: config.mem_pages_count,
logger_enabled: config.logger_enabled.unwrap_or_default(),
logger_enabled: config.logger_enabled.unwrap_or(true),
imports,
wasi,
},
@ -275,7 +275,7 @@ fn from_raw_default_module_config(config: RawDefaultModuleConfig) -> Result<Modu
let wasi = config.wasi.map(from_raw_wasi_config);
Ok(ModuleConfig {
mem_pages_count: config.mem_pages_count,
logger_enabled: config.logger_enabled.unwrap_or_default(),
logger_enabled: config.logger_enabled.unwrap_or(true),
imports,
wasi,
})