use skynet.error instead of print

This commit is contained in:
Cloud Wu
2014-06-17 16:32:32 +08:00
parent 078ac2bcd2
commit 44bef99f64

View File

@@ -502,7 +502,7 @@ end
local function init_service(start)
local ok, err = xpcall(init_template, debug.traceback, start)
if not ok then
print("init service failed:", err)
skynet.error("init service failed: " .. tostring(err))
skynet.send(".launcher","lua", "ERROR")
skynet.exit()
else