Added some spacing to log output. Also changed to json to see if it looks better.

This commit is contained in:
Harrison Deng 2021-05-03 14:31:24 -05:00
parent a44dc9851f
commit 5802c9372d

View File

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