main: catch all other events too

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2023-03-15 08:19:48 -04:00
parent dc6494d20c
commit 7c271393c3
Signed by: vbatts
GPG key ID: 10937E57733F1362

View file

@ -85,6 +85,8 @@ func main() {
fmt.Println(string(buf)) fmt.Println(string(buf))
case *mastodon.ErrorEvent: case *mastodon.ErrorEvent:
logrus.Errorf("event was error: %#v", v) logrus.Errorf("event was error: %#v", v)
default:
logrus.Warnf("not sure what to do with %T: %s", v, v)
} }
} }
} }