Permalink
Browse files

update LogHandler

  • Loading branch information...
1 parent 09df495 commit b2587482b28b7e29c7181e8618bdca82471f7343 @zrong committed Mar 3, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/zrong/zr/log/LogHandler.lua
@@ -34,7 +34,7 @@ function LogHandler:getString(level, fmt, args)
if argsnum > 0 and _isfmt(fmt) then
local fmtnum = select(2, string.gsub(fmt, '%%[%a%.]', ''))
if fmtnum ~= argsnum then
- strlist[#strlist+1] = 'LogHandler WARNING -- Cannot get a nil value between arguments OR you give a bad amout of arguments.'
+ strlist[#strlist+1] = string.format('LogHandler WARNING -- [%s] Cannot get a nil value between arguments OR you give a bad amout of arguments.', fmt)
else
strlist[#strlist+1] = string.format(fmt, unpack(args))
end

0 comments on commit b258748

Please sign in to comment.