diff options
| author | Jokler <jokler.contact@gmail.com> | 2018-02-17 23:24:13 +0100 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2018-02-17 23:24:13 +0100 |
| commit | 0892425bf833c03765e2edba8d6fdb338ae68ed5 (patch) | |
| tree | 45e4b145b2c7656e8c0ad82cc3835aa85f8adcc3 | |
| parent | 32e59aa3cc6567b909ab995a4e69beb12bdf0322 (diff) | |
| download | frippy-0892425bf833c03765e2edba8d6fdb338ae68ed5.tar.gz frippy-0892425bf833c03765e2edba8d6fdb338ae68ed5.zip | |
Improve startup logs
| -rw-r--r-- | bin/main.rs | 5 | ||||
| -rw-r--r-- | src/lib.rs | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/bin/main.rs b/bin/main.rs index fd0b4ab..88f3809 100644 --- a/bin/main.rs +++ b/bin/main.rs @@ -119,7 +119,10 @@ fn main() { match diesel::mysql::MysqlConnection::establish(url) { Ok(conn) => { match embedded_migrations::run(&conn) { - Ok(_) => bot.add_plugin(plugins::Factoids::new(conn)), + Ok(_) => { + bot.add_plugin(plugins::Factoids::new(conn)); + info!("Connected to MySQL server") + } Err(e) => { bot.add_plugin(plugins::Factoids::new(HashMap::new())); error!("Failed to run migrations: {}", e); @@ -147,12 +147,12 @@ impl Bot { match IrcServer::new_future(reactor.handle(), config).and_then(|f| {reactor.run(f)}) { Ok(v) => v, Err(e) => { - error!("Failed to connect: {}", e); + error!("Failed to connect to IRC server: {}", e); return; } }; - info!("Connected to server"); + info!("Connected to IRC server"); match server.identify() { Ok(_) => info!("Identified"), |
