mirror of
https://git.ondrovo.com/MightyPork/group-actor.git
synced 2024-11-28 11:01:01 +00:00
improve logging
This commit is contained in:
parent
2c6d0107bf
commit
bf301794f6
1 changed files with 7 additions and 4 deletions
11
src/main.rs
11
src/main.rs
|
@ -30,10 +30,11 @@ fn main() -> anyhow::Result<()> {
|
||||||
for event in client.streaming_user()? {
|
for event in client.streaming_user()? {
|
||||||
match event {
|
match event {
|
||||||
Event::Update(status) => {
|
Event::Update(status) => {
|
||||||
debug!("Status: {:#?}", status);
|
info!("Status: {:?}", status);
|
||||||
},
|
},
|
||||||
Event::Notification(notification) => {
|
Event::Notification(notification) => {
|
||||||
debug!("Notification: {:#?}", notification);
|
info!("Notification: {:?}", notification.notification_type);
|
||||||
|
debug!("{:?}", notification);
|
||||||
|
|
||||||
match notification.notification_type {
|
match notification.notification_type {
|
||||||
NotificationType::Mention => {
|
NotificationType::Mention => {
|
||||||
|
@ -77,15 +78,17 @@ fn main() -> anyhow::Result<()> {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Event::Delete(id) => {
|
Event::Delete(id) => {
|
||||||
debug!("Delete: {}", id);
|
info!("Delete: {}", id);
|
||||||
},
|
},
|
||||||
Event::FiltersChanged => {
|
Event::FiltersChanged => {
|
||||||
debug!("FiltersChanged");
|
info!("FiltersChanged");
|
||||||
// ???
|
// ???
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
println!("Main loop ended!");
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue