Improve logging (#31)

* Add more debug logging

* Set default logging to `info`
This commit is contained in:
Dave Gallant
2020-10-04 17:15:47 -04:00
committed by GitHub
parent 90b709a6a1
commit 09d48c4b03
2 changed files with 21 additions and 2 deletions

View File

@@ -48,6 +48,8 @@ pub fn send(topic: &Topic, posts: &Posts, expression: &str, config: &Config) {
.add_subject(&topic.title)
.add_html(&html_message);
debug!("Sending email notification.");
match sg.send(mail_info) {
Err(err) => println!("SendGrid failed to send mail. Error: {}", err),
Ok(body) => println!("SendGrid Response: {:?}", body),