Add logging control

This commit is contained in:
Julien Riou 2018-06-24 17:49:48 +02:00
commit f0d3cd5bdf
No known key found for this signature in database
GPG key ID: BA3E15176E45E85D
9 changed files with 164 additions and 24 deletions

View file

@ -1,12 +1,12 @@
package base
import (
"log"
"github.com/jouir/pgterminate/log"
)
// Panic prints a non-nil error and terminates the program
func Panic(err error) {
if err != nil {
log.Fatalln(err)
log.Fatalf("%s\n", err)
}
}