aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bin/main.rs5
-rw-r--r--src/lib.rs4
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);
diff --git a/src/lib.rs b/src/lib.rs
index 186d35c..54c672e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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"),