Merge branch 'master' into master

This commit is contained in:
intracomof
2020-02-25 21:01:43 +02:00
committed by GitHub
10 changed files with 111 additions and 39 deletions

View File

@@ -3,6 +3,7 @@ package utils
import (
config "../models/config"
"fmt"
"os"
)
// Log - Write to std out
@@ -23,3 +24,8 @@ func Logf(format string, a ...interface{}) {
func LogFatal(format string, a ...interface{}) {
panic(fmt.Sprintf(format, a...))
}
// LogErr - Write error
func LogErr(format string, a ...interface{}) {
fmt.Fprintf(os.Stderr, format, a...)
}