From 285af562eace18012b9b419f3c77fb34cdc323ce Mon Sep 17 00:00:00 2001 From: Ayeshmantha Perera Date: Wed, 8 Apr 2020 03:31:14 +0200 Subject: [PATCH] change(tcp-logger): fix small error log. (#1411) --- apisix/plugins/tcp-logger.lua | 2 +- apisix/plugins/udp-logger.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apisix/plugins/tcp-logger.lua b/apisix/plugins/tcp-logger.lua index d09c1746..9eeef332 100644 --- a/apisix/plugins/tcp-logger.lua +++ b/apisix/plugins/tcp-logger.lua @@ -120,7 +120,7 @@ function _M.log(conf) end if not data then - core.log.error('error occurred while encoding the token: ', err) + core.log.error('error occurred while encoding the data: ', err) end return send_tcp_data(conf, data) diff --git a/apisix/plugins/udp-logger.lua b/apisix/plugins/udp-logger.lua index 461767b5..b1b565fb 100644 --- a/apisix/plugins/udp-logger.lua +++ b/apisix/plugins/udp-logger.lua @@ -82,7 +82,7 @@ function _M.log(conf) local entry = log_util.get_full_log(ngx) if not entry.route_id then - core.log.error("failed to obtain the route id for tcp logger") + core.log.error("failed to obtain the route id for udp logger") return end