Skip to content

Commit 9bce7be

Browse files
committed
和客户端连接模式的日志
1 parent e1e7926 commit 9bce7be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

script/proto/proto.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ end
231231
function m.listen(mode, socketPort)
232232
m.mode = mode
233233
if mode == 'stdio' then
234+
log.info('Listen Mode: stdio')
234235
if platform.os == 'windows' then
235236
local windows = require 'bee.windows'
236237
windows.filemode(io.stdin, 'b')
@@ -246,6 +247,10 @@ function m.listen(mode, socketPort)
246247

247248
local server = net.listen('unix', unixPath)
248249

250+
log.info('Listen Mode: socket')
251+
log.info('Listen Port:', socketPort)
252+
log.info('Listen Path:', unixPath)
253+
249254
assert(server)
250255

251256
local dummyClient = {

0 commit comments

Comments
 (0)