Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat: log when report pages are logged, and when not
Lars Wirzenius committed 1 year ago
commit 3b882c43d08607cbb7db2f55ce08905a4f2bcf22
parent 8d622c78ed9fcba237bcdb423bb0513936979d62
1 file changed +4 -0
modified src/pages.rs
@@ -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()?)