diff --git a/src/routes/api.js b/src/routes/api.js index d51a519..ac09501 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -155,7 +155,8 @@ class ApiRoutes _logRequestWarning(req, message) { - this.logger.warn(`[${req.ip}] ${message}`); + const ip = this._getIp(req); + this.logger.warn(`[${ip}] ${message}`); }