mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
use skynet.error instead of print
This commit is contained in:
@@ -502,7 +502,7 @@ end
|
|||||||
local function init_service(start)
|
local function init_service(start)
|
||||||
local ok, err = xpcall(init_template, debug.traceback, start)
|
local ok, err = xpcall(init_template, debug.traceback, start)
|
||||||
if not ok then
|
if not ok then
|
||||||
print("init service failed:", err)
|
skynet.error("init service failed: " .. tostring(err))
|
||||||
skynet.send(".launcher","lua", "ERROR")
|
skynet.send(".launcher","lua", "ERROR")
|
||||||
skynet.exit()
|
skynet.exit()
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user