aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2018-03-01 18:34:03 +0100
committerJokler <jokler.contact@gmail.com>2018-03-01 18:34:03 +0100
commitd8406b107c651321c9e166abc36fc66730d965a1 (patch)
treea9918c8a98ad3c8d32c46d8b2b1518e43743b056 /src/main.rs
parent7cdca0b7d75172d8f900e8e755ff07ed8a72966a (diff)
downloadfrippy-d8406b107c651321c9e166abc36fc66730d965a1.tar.gz
frippy-d8406b107c651321c9e166abc36fc66730d965a1.zip
Use lossy UTF8 conversion and add a log_error function
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/main.rs b/src/main.rs
index 461387d..3432e3e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -5,7 +5,6 @@ extern crate frippy;
extern crate glob;
extern crate irc;
extern crate time;
-extern crate failure;
#[cfg(feature = "mysql")]
extern crate diesel;
@@ -27,7 +26,6 @@ use log::{Level, LevelFilter, Metadata, Record};
use irc::client::reactor::IrcReactor;
use glob::glob;
-use failure::Fail;
use frippy::plugins;
use frippy::Config;
@@ -72,12 +70,7 @@ static LOGGER: Logger = Logger;
fn main() {
// Print any errors that caused frippy to shut down
if let Err(e) = run() {
- let mut causes = e.causes();
-
- error!("{}", causes.next().unwrap());
- for cause in causes {
- error!("caused by: {}", cause);
- }
+ frippy::utils::log_error(e);
};
}