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" {
|
||||
panic(err)
|
||||
} else {
|
||||
logger.Printf(" ", err.Error())
|
||||
logger.Printf(" %s", err.Error())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/ezotrank/cabinetgo"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"bitbucket.org/ww/cabinet"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
Loading…
Reference in New Issue