mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 18:20:54 +00:00
parent
9e41d93184
commit
b04813e472
5
beego.go
5
beego.go
@ -139,6 +139,11 @@ func (app *App) SetStaticPath(url string, path string) *App {
|
|||||||
return app
|
return app
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (app *App) DelStaticPath(url string) *App {
|
||||||
|
delete(StaticDir, url)
|
||||||
|
return app
|
||||||
|
}
|
||||||
|
|
||||||
func (app *App) ErrorLog(ctx *Context) {
|
func (app *App) ErrorLog(ctx *Context) {
|
||||||
BeeLogger.Printf("[ERR] host: '%s', request: '%s %s', proto: '%s', ua: '%s', remote: '%s'\n", ctx.Request.Host, ctx.Request.Method, ctx.Request.URL.Path, ctx.Request.Proto, ctx.Request.UserAgent(), ctx.Request.RemoteAddr)
|
BeeLogger.Printf("[ERR] host: '%s', request: '%s %s', proto: '%s', ua: '%s', remote: '%s'\n", ctx.Request.Host, ctx.Request.Method, ctx.Request.URL.Path, ctx.Request.Proto, ctx.Request.UserAgent(), ctx.Request.RemoteAddr)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user