Fix log spacing
This commit is contained in:
parent
fbfd5e4727
commit
0c93549fdf
|
@ -22,12 +22,12 @@ func Log(format string, args ...interface{}) {
|
||||||
|
|
||||||
func Debug(format string, args ...interface{}) {
|
func Debug(format string, args ...interface{}) {
|
||||||
if cfg.Env == "development" {
|
if cfg.Env == "development" {
|
||||||
logger.Printf("[DEBUG]"+format, args...)
|
logger.Printf("[DEBUG] "+format, args...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func Error(err error, format string, args ...interface{}) {
|
func Error(err error, format string, args ...interface{}) {
|
||||||
logger.Printf("[ERROR]"+format, args...)
|
logger.Printf("[ERROR] "+format, args...)
|
||||||
|
|
||||||
if cfg.Env == "development" {
|
if cfg.Env == "development" {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
Loading…
Reference in New Issue