1
0
Fork 0

Fix error logging

This commit is contained in:
Gregory Eremin 2014-07-31 15:23:41 +07:00
parent f11781b61b
commit cf0b2df844
2 changed files with 3 additions and 2 deletions

View File

@ -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())
} }
} }

View File

@ -1,9 +1,10 @@
package main package main
import ( import (
"github.com/ezotrank/cabinetgo"
"strconv" "strconv"
"strings" "strings"
"bitbucket.org/ww/cabinet"
) )
type ( type (