diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-08-26 19:15:31 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-08-26 19:17:54 +0300 |
commit | 843616221eb8506f134dcfb00041f0fa5a475da8 (patch) | |
tree | f7c97812b60a424fc8ad68ce5f9acf8753d42514 /src/components/mail | |
parent | c6f11fb5927bb19a29b05434f0a733eee2c84c1e (diff) |
Add logging level to Generic jobs
Not every job success should be shown to the user, for example updating
the sqlite3 database. So introduce a level to only show relevant
notifications.
Diffstat (limited to 'src/components/mail')
-rw-r--r-- | src/components/mail/listing.rs | 2 | ||||
-rw-r--r-- | src/components/mail/view.rs | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/components/mail/listing.rs b/src/components/mail/listing.rs index aae81f85..3e6f110b 100644 --- a/src/components/mail/listing.rs +++ b/src/components/mail/listing.rs @@ -287,6 +287,7 @@ pub trait MailListingTrait: ListingTrait { handle, channel, on_finish: None, + logging_level: melib::LoggingLevel::DEBUG, }, ); } @@ -325,6 +326,7 @@ pub trait MailListingTrait: ListingTrait { handle, channel, on_finish: None, + logging_level: melib::LoggingLevel::DEBUG, }, ); } diff --git a/src/components/mail/view.rs b/src/components/mail/view.rs index 4df0da0d..3a04452a 100644 --- a/src/components/mail/view.rs +++ b/src/components/mail/view.rs @@ -1194,6 +1194,7 @@ impl Component for MailView { } } }))), + logging_level: melib::LoggingLevel::DEBUG, }, ); return true; |