mirror of
https://seed.radicle.dev/rad:zwTxygwuz5LDGBq255RA2CbNGrz8.git
synced 2026-11-29 06:40:31 +08:00
feat: log when report pages are logged, and when not
Signed-off-by: Lars Wirzenius <liw@liw.fi>
This commit is contained in:
@@ -494,6 +494,9 @@ impl StatusPage {
|
||||
node_alias: &str,
|
||||
once: bool,
|
||||
) -> JoinHandle<Result<(), PageError>> {
|
||||
if self.dirname.is_none() {
|
||||
info!("not writing HTML report pages as output directory has not been set");
|
||||
}
|
||||
self.node_alias = node_alias.into();
|
||||
spawn(move || loop {
|
||||
self.update_and_write(&db)?;
|
||||
@@ -506,6 +509,7 @@ impl StatusPage {
|
||||
|
||||
fn update_and_write(&mut self, db: &Db) -> Result<(), PageError> {
|
||||
if let Some(dirname) = &self.dirname {
|
||||
info!("write HTML report pages to {}", dirname.display());
|
||||
let mut page = PageBuilder::default()
|
||||
.node_alias(&self.node_alias)
|
||||
.runs(db.get_all_runs()?)
|
||||
|
||||
Reference in New Issue
Block a user