Skip to content

Commit

Permalink
fixup! feat(observability): add OpenTelemetry logs
Browse files Browse the repository at this point in the history
  • Loading branch information
samugi committed Jul 4, 2024
1 parent 6419d2f commit b39f182
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kong/observability/logs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,18 @@ function _M.maybe_push(stack_level, log_level, ...)

-- Early return cases:

-- log level too low
if configured_log_level() < log_level then
return
end

-- no (or empty) log line
local args = { ... }
local log_str = concat_tostring(args)
if log_str == "" then
return
end

-- log level too low
if configured_log_level() < log_level then
return
end

local log_buffer, max_logs
local request_id = request_id_get()
local request_scoped = request_id ~= nil
Expand Down

0 comments on commit b39f182

Please sign in to comment.