Refactor ip address log to use express 'req.ip' method