mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-06 12:48:20 +00:00
Revert some changes we don't want
This commit is contained in:
@@ -29,7 +29,6 @@ use wasmer_wasix::runners::{MappedDirectory, Runner, WapmContainer};
|
||||
use webc::metadata::Manifest;
|
||||
use webc_v4::DirOrFile;
|
||||
|
||||
use crate::logging;
|
||||
use crate::{
|
||||
store::StoreOptions,
|
||||
wasmer_home::{DownloadCached, ModuleCache, WasmerHome},
|
||||
@@ -59,9 +58,6 @@ pub struct RunUnstable {
|
||||
input: PackageSource,
|
||||
/// Command-line arguments passed to the package
|
||||
args: Vec<String>,
|
||||
/// Enable debug output
|
||||
#[clap(long = "debug", short = 'd')]
|
||||
pub(crate) debug: bool,
|
||||
}
|
||||
|
||||
impl RunUnstable {
|
||||
@@ -81,11 +77,6 @@ impl RunUnstable {
|
||||
ExecutableTarget::Webc(container) => self.execute_webc(&target, &container, &mut store),
|
||||
};
|
||||
|
||||
if self.debug {
|
||||
let level = log::LevelFilter::Debug;
|
||||
logging::set_up_logging(level);
|
||||
}
|
||||
|
||||
if let Err(e) = &result {
|
||||
if let Some(coredump) = &self.coredump_on_trap {
|
||||
if let Err(e) = generate_coredump(e, target.path(), coredump) {
|
||||
@@ -614,11 +605,6 @@ impl Default for Callbacks {
|
||||
}
|
||||
|
||||
impl wasmer_wasix::runners::wcgi::Callbacks for Callbacks {
|
||||
/// A callback that is called whenever the server starts.
|
||||
fn started(&self, config: &wasmer_wasix::runners::wcgi::Config, _abort: wasmer_wasix::runners::wcgi::AbortHandle) {
|
||||
println!("WCGI Server running at http://{}/", config.addr);
|
||||
}
|
||||
|
||||
fn on_stderr(&self, raw_message: &[u8]) {
|
||||
if let Ok(mut stderr) = self.stderr.lock() {
|
||||
// If the WCGI runner printed any log messages we want to make sure
|
||||
|
||||
Reference in New Issue
Block a user