mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-22 03:33:48 +01:00
Compare commits
2 Commits
95ee4228bd
...
0b1d14afe8
Author | SHA1 | Date | |
---|---|---|---|
|
0b1d14afe8 | ||
|
61c9f68332 |
@ -1,4 +1,11 @@
|
|||||||
# Revision history for Difluoroborane
|
# Revision history for Difluoroborane
|
||||||
|
A changelog following the [keepachangelog.com/en/1.0.0](https://keepachangelog.com/en/1.0.0/) standard
|
||||||
|
|
||||||
|
## 0.4.3 -- unreleased
|
||||||
|
|
||||||
|
### CHANGED Changed
|
||||||
|
|
||||||
|
* errors in actors are now logged as errors ([#84](https://gitlab.com/fabinfra/fabaccess/bffh/-/issues/84))
|
||||||
|
|
||||||
## 0.4.1 -- 2022-04-24
|
## 0.4.1 -- 2022-04-24
|
||||||
|
|
||||||
|
@ -71,17 +71,17 @@ impl Actor for Process {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ok(retv) => {
|
Ok(retv) => {
|
||||||
tracing::warn!(%name, ?state, code=?retv.status,
|
tracing::error!(%name, ?state, code=?retv.status,
|
||||||
"Actor returned nonzero exitcode"
|
"Actor returned nonzero exitcode"
|
||||||
);
|
);
|
||||||
if !retv.stderr.is_empty() {
|
if !retv.stderr.is_empty() {
|
||||||
let errstr = String::from_utf8_lossy(&retv.stderr);
|
let errstr = String::from_utf8_lossy(&retv.stderr);
|
||||||
for line in errstr.lines() {
|
for line in errstr.lines() {
|
||||||
tracing::warn!(%name, %line, "actor stderr");
|
tracing::error!(%name, %line, "actor stderr");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(error) => tracing::warn!(%name, ?error, "process actor failed to run cmd"),
|
Err(error) => tracing::error!(%name, ?error, "process actor failed to run cmd"),
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user