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.
1 parent 22343f3 commit b95fccdCopy full SHA for b95fccd
src/logging.rs
@@ -41,7 +41,9 @@ pub struct TerminalWriterMaker {
41
42
impl std::io::Write for RemoteWriter {
43
fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> {
44
- Request::to(&self.target).body(buf).send().unwrap();
+ let body = serde_json::json!({"Log": buf});
45
+ let body = serde_json::to_vec(&body).unwrap();
46
+ Request::to(&self.target).body(body).send().unwrap();
47
Ok(buf.len())
48
}
49
0 commit comments