Fix error logging
This commit is contained in:
parent
f11781b61b
commit
cf0b2df844
|
@ -35,6 +35,6 @@ func Error(err error, format string, args ...interface{}) {
|
||||||
if Config.Env == "development" {
|
if Config.Env == "development" {
|
||||||
panic(err)
|
panic(err)
|
||||||
} else {
|
} else {
|
||||||
logger.Printf(" ", err.Error())
|
logger.Printf(" %s", err.Error())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ezotrank/cabinetgo"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"bitbucket.org/ww/cabinet"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
Loading…
Reference in New Issue