1
0
Fork 0

Fix log spacing

This commit is contained in:
Gregory Eremin 2014-07-15 17:50:04 +07:00
parent fbfd5e4727
commit 0c93549fdf
1 changed files with 2 additions and 2 deletions

View File

@ -22,12 +22,12 @@ func Log(format string, args ...interface{}) {
func Debug(format string, args ...interface{}) {
if cfg.Env == "development" {
logger.Printf("[DEBUG]"+format, args...)
logger.Printf("[DEBUG] "+format, args...)
}
}
func Error(err error, format string, args ...interface{}) {
logger.Printf("[ERROR]"+format, args...)
logger.Printf("[ERROR] "+format, args...)
if cfg.Env == "development" {
panic(err)