Added some spacing to log output. Also changed to json to see if it looks better.
This commit is contained in:
parent
a44dc9851f
commit
5802c9372d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user