fix: Reducing logging noise

This commit is contained in:
Ed Page 2018-01-06 20:34:48 -07:00
parent 8f2679ced6
commit a7acd2c858
4 changed files with 6 additions and 6 deletions

View file

@ -250,7 +250,7 @@ pub fn build(config: &Config) -> Result<()> {
// copy all remaining files in the source to the destination
// compile SASS along the way
{
info!("Copying remaining assets");
debug!("Copying remaining assets");
let mut asset_files = files::FilesBuilder::new(source)?;
for line in &config.ignore {
@ -277,7 +277,7 @@ pub fn build(config: &Config) -> Result<()> {
// creates a new RSS file with the contents of the site blog
fn create_rss(path: &str, dest: &Path, config: &Config, posts: &[Document]) -> Result<()> {
let rss_path = dest.join(path);
info!("Creating RSS file at {}", rss_path.display());
debug!("Creating RSS file at {}", rss_path.display());
let title = &config.posts.title;
let description = config
@ -323,7 +323,7 @@ fn create_rss(path: &str, dest: &Path, config: &Config, posts: &[Document]) -> R
// creates a new jsonfeed file with the contents of the site blog
fn create_jsonfeed(path: &str, dest: &Path, config: &Config, posts: &[Document]) -> Result<()> {
let jsonfeed_path = dest.join(path);
info!("Creating jsonfeed file at {}", jsonfeed_path.display());
debug!("Creating jsonfeed file at {}", jsonfeed_path.display());
let title = &config.posts.title;
let description = config

View file

@ -224,7 +224,7 @@ impl ConfigBuilder {
let file_path = files::find_project_file(&cwd, "_cobalt.yml");
let config = file_path
.map(|p| {
info!("Using config file {:?}", &p);
debug!("Using config file {:?}", &p);
Self::from_file(&p).chain_err(|| format!("Error reading config file {:?}", p))
})
.unwrap_or_else(|| {

View file

@ -213,7 +213,7 @@ fn write_document_file_internal(content: &str, dest_file: &path::Path) -> Result
.map_err(|e| format!("Could not create {:?}: {}", dest_file, e))?;
file.write_all(content.as_bytes())?;
info!("Wrote {}", dest_file.display());
trace!("Wrote {}", dest_file.display());
Ok(())
}

View file

@ -155,7 +155,7 @@ fn load_data(data_path: &path::Path) -> Result<liquid::Value> {
}
fn insert_data_dir(data: &mut liquid::Object, data_root: &path::Path) -> Result<()> {
info!("Loading data from {:?}", data_root);
debug!("Loading data from {:?}", data_root);
let data_files_builder = files::FilesBuilder::new(data_root)?;
let data_files = data_files_builder.build()?;