Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
feat: log what report HTML pages are written
Lars Wirzenius committed 1 year ago
commit 8d622c78ed9fcba237bcdb423bb0513936979d62
parent 8da1598d2f8e3570429d94372988be6a3d450c6a
1 file changed +9 -3
modified src/pages.rs
@@ -540,10 +540,10 @@ impl StatusPage {
            (status, repos)
        };

-
        write(dirname.join("index.html"), status).unwrap();
+
        Self::write_file(&dirname.join("index.html"), &status).unwrap();

        for (filename, repopage) in repos {
-
            write(filename, repopage).unwrap();
+
            Self::write_file(&filename, &repopage).unwrap();
        }

        Ok(())
@@ -558,10 +558,16 @@ impl StatusPage {
            StatusData::from(&*data).as_json()
        };

-
        write(filename, status).unwrap();
+
        Self::write_file(filename, &status).unwrap();

        Ok(())
    }
+

+
    fn write_file(filename: &Path, text: &str) -> Result<(), PageError> {
+
        info!("write file {}", filename.display());
+
        write(filename, text).unwrap();
+
        Ok(())
+
    }
}

impl Clone for StatusPage {