Skip to content

Commit

Permalink
fix(log): Reduce noise when level is debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Page authored and epage committed Oct 26, 2017
1 parent 40c2dd3 commit 646d589
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/bin/cobalt/serve.rs
Expand Up @@ -68,7 +68,7 @@ pub fn watch_command(matches: &clap::ArgMatches) -> Result<()> {
let event = rx.recv().chain_err(|| "Notify error")?;
let rebuild = if let Some(ref event_path) = event.path {
if site_files.includes_file(event_path) {
trace!("Page changed {:?}", event);
debug!("Page changed {:?}", event);
true
} else {
trace!("Ignored file changed {:?}", event);
Expand Down
6 changes: 3 additions & 3 deletions src/files.rs
Expand Up @@ -24,7 +24,7 @@ impl FilesBuilder {
}

pub fn add_ignore(&mut self, line: &str) -> Result<&mut FilesBuilder> {
debug!("{:?}: adding '{}' ignore pattern", self.root_dir, line);
trace!("{:?}: adding '{}' ignore pattern", self.root_dir, line);
self.ignore.push(line.to_owned());
Ok(self)
}
Expand Down Expand Up @@ -131,11 +131,11 @@ impl Files {
match self.ignore.matched(path, is_dir) {
Match::None => true,
Match::Ignore(glob) => {
debug!("{:?}: ignored {:?}", path, glob.original());
trace!("{:?}: ignored {:?}", path, glob.original());
false
}
Match::Whitelist(glob) => {
debug!("{:?}: allowed {:?}", path, glob.original());
trace!("{:?}: allowed {:?}", path, glob.original());
true
}
}
Expand Down

0 comments on commit 646d589

Please sign in to comment.