Skip to content

Commit e7f886c

Browse files
committed
adds service_name logging
1 parent 94920a4 commit e7f886c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apisix/upstream.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ function _M.set_by_route(route, api_ctx)
312312

313313
local new_nodes, err = dis.nodes(service_name, up_conf.discovery_args)
314314
if not new_nodes then
315-
return HTTP_CODE_UPSTREAM_UNAVAILABLE, "no valid upstream node: " .. (err or "nil")
315+
return HTTP_CODE_UPSTREAM_UNAVAILABLE, "no valid upstream node for service '" .. service_name .. "': " .. (err or "nil")
316316
end
317317

318318
local same = upstream_util.compare_upstream_node(up_conf, new_nodes)

0 commit comments

Comments
 (0)