mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 22:28:21 +00:00
Fix the debug config feature and --debug flag.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use crate::common::get_cache_dir;
|
||||
use crate::logging;
|
||||
use crate::store::{CompilerType, EngineType, StoreOptions};
|
||||
use crate::suggestions::suggest_function_exports;
|
||||
use crate::warning;
|
||||
@@ -70,6 +71,10 @@ pub struct Run {
|
||||
impl Run {
|
||||
/// Execute the run command
|
||||
pub fn execute(&self) -> Result<()> {
|
||||
#[cfg(feature = "debug")]
|
||||
if self.debug {
|
||||
logging::set_up_logging().unwrap();
|
||||
}
|
||||
self.inner_execute().with_context(|| {
|
||||
let compilers = CompilerType::enabled()
|
||||
.iter()
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
//! Logging functions for the debug feature.
|
||||
use crate::utils::wasmer_should_print_color;
|
||||
use fern::colors::{Color, ColoredLevelConfig};
|
||||
use std::time;
|
||||
|
||||
Reference in New Issue
Block a user