diff --git a/src/main.rs b/src/main.rs index 5b6e4b2..ab73b64 100644 --- a/src/main.rs +++ b/src/main.rs @@ -88,7 +88,7 @@ async fn main() { INBOX.count_messages("test"); // initialize the lazy static so we know if redis is unavailable if let Err(why) = client.start().await { - println!("An error occurred while running the client: {:?}", why); + eprintln!("An error occurred while running the client: {:?}", why); } } @@ -168,7 +168,7 @@ async fn inbox(ctx: &Context, msg: &Message) -> CommandResult { send_or_log!(msg.channel_id.say(&ctx, &content).await); } } - println!("{:?}", messages); // paranoia for now so the messages aren’t lost + eprintln!("{:?}", messages); // paranoia for now so the messages aren’t lost if let Err(e) = INBOX.clear_messages(name) { eprintln!("Could not clear inbox of user {} because {}", name, e); } diff --git a/src/reactions.rs b/src/reactions.rs index 00cef97..7df855b 100644 --- a/src/reactions.rs +++ b/src/reactions.rs @@ -12,7 +12,7 @@ lazy_static! { &std::fs::read_to_string("reaction_config.json").unwrap_or("[]".to_string()), ) .expect("Could not read reaction config"); - println!("Read reaction config: {:?}", c); + eprintln!("Read reaction config: {:?}", c); c }; }