common: Support multiline notifications
@@ -115,8 +115,9 @@ pub fn set_globals(verbose: bool, quiet: bool) -> Result<Cfg> {
if download_tracker.borrow_mut().handle_notification(&n) {
return;
}
-
- match n.level() {
+ let level = n.level();
+ for n in format!("{}", n).lines() {
+ match level {
NotificationLevel::Verbose => {
if verbose {
verbose!("{}", n);
@@ -132,6 +133,7 @@ pub fn set_globals(verbose: bool, quiet: bool) -> Result<Cfg> {
err!("{}", n);
}
}
+ }
}))?)
}
