0207caab by astaxie

keep the shortname for logs info/warn/debug

1 parent d629c1d3
...@@ -78,9 +78,9 @@ func Warning(v ...interface{}) { ...@@ -78,9 +78,9 @@ func Warning(v ...interface{}) {
78 BeeLogger.Warning(generateFmtStr(len(v)), v...) 78 BeeLogger.Warning(generateFmtStr(len(v)), v...)
79 } 79 }
80 80
81 // Deprecated: compatibility alias for Warning(), Will be removed in 1.5.0. 81 // compatibility alias for Warning()
82 func Warn(v ...interface{}) { 82 func Warn(v ...interface{}) {
83 Warning(v...) 83 BeeLogger.Warn(generateFmtStr(len(v)), v...)
84 } 84 }
85 85
86 func Notice(v ...interface{}) { 86 func Notice(v ...interface{}) {
...@@ -92,9 +92,9 @@ func Informational(v ...interface{}) { ...@@ -92,9 +92,9 @@ func Informational(v ...interface{}) {
92 BeeLogger.Informational(generateFmtStr(len(v)), v...) 92 BeeLogger.Informational(generateFmtStr(len(v)), v...)
93 } 93 }
94 94
95 // Deprecated: compatibility alias for Warning(), Will be removed in 1.5.0. 95 // compatibility alias for Warning()
96 func Info(v ...interface{}) { 96 func Info(v ...interface{}) {
97 Informational(v...) 97 BeeLogger.Info(generateFmtStr(len(v)), v...)
98 } 98 }
99 99
100 // Debug logs a message at debug level. 100 // Debug logs a message at debug level.
...@@ -103,7 +103,7 @@ func Debug(v ...interface{}) { ...@@ -103,7 +103,7 @@ func Debug(v ...interface{}) {
103 } 103 }
104 104
105 // Trace logs a message at trace level. 105 // Trace logs a message at trace level.
106 // Deprecated: compatibility alias for Warning(), Will be removed in 1.5.0. 106 // compatibility alias for Warning()
107 func Trace(v ...interface{}) { 107 func Trace(v ...interface{}) {
108 BeeLogger.Trace(generateFmtStr(len(v)), v...) 108 BeeLogger.Trace(generateFmtStr(len(v)), v...)
109 } 109 }
......
...@@ -58,7 +58,7 @@ func serverStaticRouter(ctx *context.Context) { ...@@ -58,7 +58,7 @@ func serverStaticRouter(ctx *context.Context) {
58 finfo, err := os.Stat(file) 58 finfo, err := os.Stat(file)
59 if err != nil { 59 if err != nil {
60 if RunMode == "dev" { 60 if RunMode == "dev" {
61 Warn(err) 61 Warn("Can't find the file:", file, err)
62 } 62 }
63 http.NotFound(ctx.ResponseWriter, ctx.Request) 63 http.NotFound(ctx.ResponseWriter, ctx.Request)
64 return 64 return
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!