#65 safe concat where appropriate
This commit is contained in:
@@ -104,7 +104,7 @@ function redstone.new(session_id, unit_id, advert, out_queue)
|
||||
table.insert(self.io_list.analog_out, channel)
|
||||
else
|
||||
-- should be unreachable code, we already validated channels
|
||||
log.error(log_tag .. "failed to identify advertisement channel IO mode (" .. channel .. ")", true)
|
||||
log.error(util.c(log_tag, "failed to identify advertisement channel IO mode (", channel, ")"), true)
|
||||
return nil
|
||||
end
|
||||
|
||||
@@ -212,8 +212,8 @@ function redstone.new(session_id, unit_id, advert, out_queue)
|
||||
break
|
||||
end
|
||||
end
|
||||
elseif mode ~= nil then
|
||||
log.debug(log_tag .. "attemted write to non D/O or A/O mode " .. mode)
|
||||
else
|
||||
log.debug(util.c(log_tag, "attemted write to non D/O or A/O mode ", mode))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -237,7 +237,7 @@ function turbinev.new(session_id, unit_id, advert, out_queue)
|
||||
elseif cmd == TBV_RTU_S_CMDS.DEC_DUMP_MODE then
|
||||
_dec_dump_mode()
|
||||
else
|
||||
log.debug(log_tag .. "unrecognized in_q command " .. util.strval(cmd))
|
||||
log.debug(util.c(log_tag, "unrecognized in_q command ", cmd))
|
||||
end
|
||||
elseif msg.qtype == mqueue.TYPE.DATA then
|
||||
-- instruction with body
|
||||
@@ -245,7 +245,7 @@ function turbinev.new(session_id, unit_id, advert, out_queue)
|
||||
if cmd.key == TBV_RTU_S_DATA.SET_DUMP_MODE then
|
||||
_set_dump_mode(cmd.val)
|
||||
else
|
||||
log.debug(log_tag .. "unrecognized in_q data " .. util.strval(cmd.key))
|
||||
log.debug(util.c(log_tag, "unrecognized in_q data ", cmd.key))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user