Stork Server shutting down event it logged twice
The issue was found during sanity checks for the 1.0 release.
Source: #645 (comment 253038)
When running stork-server in the console and shutting it down with ctrl-c, the shutting down event it logged twice.
Here's what I see in the console:
^CINFO[2021-12-07 14:57:25] main.go:37 Received Ctrl-C signal
INFO[2021-12-07 14:57:25] eventcenter.go:117 event 'shutting down Stork Server'
INFO[2021-12-07 14:57:25] server.go:224 Shutting down Stork Server
INFO[2021-12-07 14:57:25] restservice.go:312 Stopping ReST API Service
INFO[2021-12-07 14:57:25] restservice.go:257 stopped serving Stork Server
INFO[2021-12-07 14:57:25] eventcenter.go:117 event 'shutting down Stork Server'
INFO[2021-12-07 14:57:25] sse.go:65 to 0xc0009581c0 sent {"ID":32,"CreatedAt":"2021-12-07T13:57:25.837546Z","Text":"shutting down Stork Server","Level":0,"Relations":{},"Details":""}
INFO[2021-12-07 14:57:25] server.go:224 Shutting down Stork Server
INFO[2021-12-07 14:57:25] restservice.go:312 Stopping ReST API Service
INFO[2021-12-07 14:57:25] sse.go:65 to 0xc0009581c0 sent {"ID":33,"CreatedAt":"2021-12-07T13:57:25.839525Z","Text":"shutting down Stork Server","Level":0,"Relations":{},"Details":""}