Skip to content
Snippets Groups Projects
Commit 8368fb21 authored by Eugine Blikh's avatar Eugine Blikh Committed by Konstantin Osipov
Browse files

logging: crash if fmt is not string

closes gh-2516
parent fe54f347
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,8 @@ local function say(level, fmt, ...)
if not stat then
error(fmt, 3)
end
elseif type(fmt) ~= 'string' then
fmt = tostring(fmt)
end
local frame = debug.getinfo(3, "Sl")
local line, file = 0, 'eval'
......
......@@ -48,5 +48,7 @@ debug = nil
log.info("debug is nil")
debug = require('debug')
test:ok(log.info(true) == nil, 'check tarantool crash (gh-2516)')
test:check()
os.exit()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment