diff --git a/src/cli/common.rs b/src/cli/common.rs index 80dc48ec61c..1b7645feb84 100644 --- a/src/cli/common.rs +++ b/src/cli/common.rs @@ -148,6 +148,9 @@ impl NotifyOnConsole { NotificationLevel::Error => { err!("{}", n); } + NotificationLevel::Debug => { + debug!("{}", n); + } } } } diff --git a/src/utils/notifications.rs b/src/utils/notifications.rs index 5afaf6507ce..2dd54fe1483 100644 --- a/src/utils/notifications.rs +++ b/src/utils/notifications.rs @@ -46,6 +46,7 @@ impl<'a> Notification<'a> { pub fn level(&self) -> NotificationLevel { use self::Notification::*; match self { + SetDefaultBufferSize(_) => NotificationLevel::Debug, CreatingDirectory(_, _) | RemovingDirectory(_, _) | LinkingDirectory(_, _) @@ -59,7 +60,7 @@ impl<'a> Notification<'a> { | ResumingPartialDownload | UsingCurl | UsingReqwest => NotificationLevel::Verbose, - RenameInUse(_, _) | SetDefaultBufferSize(_) => NotificationLevel::Info, + RenameInUse(_, _) => NotificationLevel::Info, NoCanonicalPath(_) => NotificationLevel::Warn, Error(_) => NotificationLevel::Error, } diff --git a/src/utils/notify.rs b/src/utils/notify.rs index 17c5bc80e82..c4f3a4f528c 100644 --- a/src/utils/notify.rs +++ b/src/utils/notify.rs @@ -4,4 +4,5 @@ pub enum NotificationLevel { Info, Warn, Error, + Debug, }