From 2a456a0633c3c2ecaf71f061dda9a1de7e141874 Mon Sep 17 00:00:00 2001 From: Jun Ouyang Date: Mon, 6 May 2024 16:44:28 +0800 Subject: [PATCH] fix: fix code --- kong/pdk/log.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kong/pdk/log.lua b/kong/pdk/log.lua index ded7ebf712289..95711d023356c 100644 --- a/kong/pdk/log.lua +++ b/kong/pdk/log.lua @@ -815,7 +815,7 @@ do end end - local upstream_status = okong.service.response.get_status() + local upstream_status = ctx.buffered_status or tonumber(sub(var.upstream_status or "", -3)) local response_source = okong.response.get_source(ongx.ctx) local response_source_name = TYPE_NAMES[response_source]