Log Remote address for each request

This commit is contained in:
斟酌 鵬兄 2014-10-22 13:14:33 +08:00
parent bbb604af66
commit 6e32bf4e23

View File

@ -43,7 +43,8 @@ Framework.prototype.run = function()
}
Dragonfly.Info(
method + ": " + encodeURI( this.HTTP.request.raw.url )
this.HTTP.request.remoteAddr + " "
+ method + ": " + encodeURI( this.HTTP.request.raw.url )
+ " - " + this.HTTP.request.raw.headers["user-agent"]
, Dragonfly.Visibility.VISIBLE
);