We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0de8809 + 91c15ad commit bd5457eCopy full SHA for bd5457e
crates/trigger-http/src/wasi.rs
@@ -1,3 +1,4 @@
1
+use std::io::IsTerminal;
2
use std::net::SocketAddr;
3
4
use anyhow::{anyhow, Context, Result};
@@ -144,7 +145,11 @@ impl HttpExecutor for WasiHttpExecutor {
144
145
Ok(())
146
}
147
.map_err(|e: anyhow::Error| {
- tracing::warn!("component error after response: {e:?}");
148
+ if std::io::stderr().is_terminal() {
149
+ tracing::error!("Component error after response started. The response may not be fully sent: {e:?}");
150
+ } else {
151
+ terminal::warn!("Component error after response started: {e:?}");
152
+ }
153
}),
154
);
155
0 commit comments