Skip to content
Snippets Groups Projects
Verified Commit 95ec0a5e authored by Ophestra's avatar Ophestra
Browse files

feat: print signal causing shutdown

parent b6b899f1
Branches print-signal
No related tags found
No related merge requests found
Pipeline #986 passed
......@@ -53,7 +53,8 @@ func serve(sig chan os.Signal, db *leveldb.DB) error {
// graceful shutdown
go func() {
<-sig
s := <-sig
log.Printf("received %s", s)
log.Println("shutting down")
if err := app.Shutdown(); err != nil {
fmt.Printf("cannot shutdown: %v", err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment