[NOD-487] Implement a mechanism to gracefully shut down after a panic (#512)

* [NOD-487] Implement a mechanism to gracefully shut down after a panic.

* [NOD-487] Fixed bad log.

* [NOD-487] Removed unused import.

* [NOD-487] Convert panic handlers from anonymous functions to methods.
This commit is contained in:
stasatdaglabs
2019-12-05 12:29:39 +02:00
committed by Svarog
parent 7b6ed9a778
commit 9adb105e37
37 changed files with 93 additions and 59 deletions

View File

@@ -5,5 +5,5 @@ import "github.com/daglabs/btcd/apiserver/logger"
var (
log = logger.BackendLog.Logger("UTIL")
spawn = panics.GoroutineWrapperFunc(log, logger.BackendLog)
spawn = panics.GoroutineWrapperFunc(log)
)