mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-15 01:11:58 +08:00
change(tcp-logger): fix small error log. (#1411)
This commit is contained in:
parent
f5a078274f
commit
285af562ea
@ -120,7 +120,7 @@ function _M.log(conf)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not data then
|
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
|
end
|
||||||
|
|
||||||
return send_tcp_data(conf, data)
|
return send_tcp_data(conf, data)
|
||||||
|
@ -82,7 +82,7 @@ function _M.log(conf)
|
|||||||
local entry = log_util.get_full_log(ngx)
|
local entry = log_util.get_full_log(ngx)
|
||||||
|
|
||||||
if not entry.route_id then
|
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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user