From bc0ea988dadc6646da0eeb1611b1470acf2c0f5a Mon Sep 17 00:00:00 2001 From: Jun Lin Date: Tue, 22 Mar 2022 07:51:21 +0800 Subject: [PATCH] Fixes coding style. --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 72b836b..6b9b381 100644 --- a/index.js +++ b/index.js @@ -390,7 +390,7 @@ Client.prototype._pollConfig = function () { this._scheduleNextConfigPoll(getMaxAge(res)) if (req.statusCode === 304) { - this._log.debug(`[_pollConfig] statusCode: 304, message: No new config since last time`) + this._log.debug('[_pollConfig] statusCode: 304, message: No new config since last time') res.resume() return } @@ -399,11 +399,11 @@ Client.prototype._pollConfig = function () { // something is wrong on the Central Config server. switch (res.statusCode) { case 403: - this._log.warn(`[_pollConfig] statusCode: 403, message: Central config not enabled in APM Server`) - break; + this._log.warn('[_pollConfig] statusCode: 403, message: Central config not enabled in APM Server') + break case 404: - this._log.warn(`[_pollConfig] statusCode: 404, message: Old APM Server that doesn't support central config`) - break; + this._log.warn('[_pollConfig] statusCode: 404, message: Old APM Server that doesn't support central config') + break } res.resume()