ruuvi / ruuvitracker_server

RuuviTracker Server
https://ruuvi.com
BSD 2-Clause "Simplified" License
22 stars 7 forks source link

When logging, server should read request ip/host from X-Forwarded-For headers. #67

Closed jsyrjala closed 11 years ago

jsyrjala commented 11 years ago
2012-12-22T21:33:29.745 INFO  ruuvi-server.api: REQUEST:17762 127.0.0.1 :get /api/v1-dev/sessions/1,2,3/events :query-params {}
2012-12-22T21:33:29.940 INFO  ruuvi-server.api: RESPONSE:17762 127.0.0.1 200 195 msec
jsyrjala commented 11 years ago

http://pastebin.com/pFNFcLu5 http://vemod.net/ring-middleware-for-x-forwarded-for

jsyrjala commented 11 years ago

Fixed with 9c309a9d5b6a331f66e399c39adab5b840c021e5