[example hello] Produce output when run in the usual way.

Fixes #3503.
This commit is contained in:
Jim Blandy 2024-07-03 08:36:18 -07:00
parent 3a6814770a
commit 37f283688a

View File

@ -22,7 +22,10 @@ async fn run() {
pub fn main() {
#[cfg(not(target_arch = "wasm32"))]
{
env_logger::init();
env_logger::builder()
.filter(Some(module_path!()), log::LevelFilter::Info)
.parse_default_env()
.init();
pollster::block_on(run());
}
#[cfg(target_arch = "wasm32")]