mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33:09 +00:00
use skynet.error instead of print
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user