Skip to content

Commit

Permalink
Merge branch 'master' into otrace
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyoo0812 committed May 22, 2024
1 parent 004470c commit 5ef0367
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions script/basic/logger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local pcall = pcall
local pairs = pairs
local tunpack = table.unpack
local dtraceback = debug.traceback
local qtrack_id = quanta.track_id
local lfilter = log.filter
local lprint = log.print

Expand Down Expand Up @@ -50,6 +51,7 @@ function logger.filter(level)
end

local function logger_output(flag, feature, lvl, lvl_name, fmt, ...)
local trace_id = qtrack_id()
local ok, msg = pcall(lprint, lvl, flag, title, feature, fmt, ...)
if not ok then
local wfmt = "[logger][{}] format failed: {}=> {})"
Expand Down
2 changes: 1 addition & 1 deletion script/feature/span.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
local lnow_ms = timer.now_ms
local log_debug = logger.debug
local jencode = json.encode
local lrandomkey = crypt.randomkey
local lrandomkey = ssl.randomkey

local SERVICE_NAME = quanta.name
local SERVICE_HOST = quanta.host
Expand Down

0 comments on commit 5ef0367

Please sign in to comment.