Changed prints a bit

This commit is contained in:
Sofia 2018-04-19 01:58:03 +03:00
parent 316ec09319
commit dd9d500f9d

View File

@ -115,6 +115,11 @@ pub fn build(logger: &Logger, opt: &Opt, _: &BuildOpt) -> Result<(), Error> {
);
let rendered = page_template.render(&data);
renders.push(rendered);
logger.log(
LogLevel::DETAIL,
format!("Rendered {}", config.page_config.page.html_path),
);
}
logger.log(LogLevel::INFO, "Writing");
@ -129,7 +134,7 @@ pub fn build(logger: &Logger, opt: &Opt, _: &BuildOpt) -> Result<(), Error> {
.output
.unwrap_or("public".to_owned()),
);
logger.log(LogLevel::DETAILER, format!("Writing {:?}", html_path));
logger.log(LogLevel::DETAIL, format!("Writing {:?}", html_path));
if let Some(render) = renders.get(idx) {
file_writer::write_file(&html_path, render.clone(), opt.overwrite)?;
} else {