Changed some logging stuff.

This commit is contained in:
Harrison Deng 2021-05-03 14:29:58 -05:00
parent bf612b900c
commit a44dc9851f
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ end
local function handleMessage(sender, type, data)
if type == LOG then
print("[" .. sender .. "]: " .. data["log"] .. textutils.serialise(data["content"]))
print("[" .. sender .. "]: " .. data["log"] .. (data["content"] and textutils.serialise(data["content"]) or ""))
elseif type == REQUEST then
handleRequest(sender, data["request"], data["content"])
end

View File

@ -84,7 +84,7 @@ local function sendLog(log, ...)
sender=UNIT,
type=LOG,
log=log,
CONTENT=arg
content=arg
}
modem.transmit(CHANNEL, CHANNEL, textutils.serialise(logData))
end