Skip to content

Commit

Permalink
Remove logging from the adapter.
Browse files Browse the repository at this point in the history
That said, there is no replacement yet, so add a FIXME comment.
  • Loading branch information
sunfishcode committed Sep 27, 2023
1 parent 0ef1c46 commit f680b2a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/wasi-preview1-component-adapter/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
//! We're avoiding static initializers, so we can't have things like string
//! literals. Replace the standard assert macros with simpler implementations.
use crate::bindings::wasi::logging::logging;

#[allow(dead_code)]
#[doc(hidden)]
pub fn println(message: &[u8]) {
let context = byte_array_literals::str!("context");
logging::log(logging::Level::Info, &context, message);
// FIXME: We need some way to print a message.
let _ = message;
}

/// A minimal `eprintln` for debugging.
Expand Down

0 comments on commit f680b2a

Please sign in to comment.