Add logging control
This commit is contained in:
parent
96ade1c1d7
commit
f0d3cd5bdf
9 changed files with 164 additions and 24 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue