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
1 changed files with 2 additions and 0 deletions

View File

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