fix: log request IP in rack middleware