consistently use log.Check for logging errors that "should not happen", don't influence application flow

sooner or later, someone will notice one of these messages, which will lead us
to a bug.
This commit is contained in:
Mechiel Lukkien
2023-02-16 13:22:00 +01:00
parent ef8e5fa1a8
commit 5c33640aea
30 changed files with 366 additions and 246 deletions

View File

@ -87,7 +87,8 @@ func Close() {
mutex.Lock()
defer mutex.Unlock()
if tlsrptDB != nil {
tlsrptDB.Close()
err := tlsrptDB.Close()
xlog.Check(err, "closing database")
tlsrptDB = nil
}
}