diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-07-25 14:01:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-07-25 14:01:43 +0800 |
commit | efb8e40a5dcad11c80a2573a52032b8f64ab2580 (patch) | |
tree | 90689c61b8e6e869451e0304d7cef4431b3a2514 | |
parent | 61e41fa7a0af893e979d6231537c045713a19135 (diff) | |
download | lua-language-server-efb8e40a5dcad11c80a2573a52032b8f64ab2580.zip |
修改一下日志
-rw-r--r-- | server/src/async/async.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/async/async.lua b/server/src/async/async.lua index 644a4061..34716502 100644 --- a/server/src/async/async.lua +++ b/server/src/async/async.lua @@ -8,7 +8,7 @@ local GCInfo = {} thread.newchannel 'gc' -local function createTask() +local function createTask(name) TaskId = TaskId + 1 GCInfo[TaskId] = false local id = TaskId @@ -52,7 +52,7 @@ while true do gc:push(ID, collectgarbage 'count') end ]]):format(id, package.cpath, package.path, requestName, responseName) - log.debug('Create thread, id: ', id) + log.debug('Create thread, id: ', id, 'task: ', name) return { id = id, thread = thread.thread(buf), @@ -68,7 +68,7 @@ local function run(name, arg, callback) end local task = table.remove(IdlePool) if not task then - task = createTask() + task = createTask(name) end RunningList[task.id] = { task = task, |