diff options
| -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"), |
