main: catch all other events too
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
dc6494d20c
commit
7c271393c3
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue