This is an automated email from the ASF dual-hosted git repository.

membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 285af56  change(tcp-logger): fix small error log. (#1411)
285af56 is described below

commit 285af562eace18012b9b419f3c77fb34cdc323ce
Author: Ayeshmantha Perera <[email protected]>
AuthorDate: Wed Apr 8 03:31:14 2020 +0200

    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 d09c174..9eeef33 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 461767b..b1b565f 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
 

Reply via email to