summaryrefslogtreecommitdiff
path: root/script-beta/proto
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-10 17:07:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-10 17:07:19 +0800
commit3032729867c8975d433adc5de11cdc905d9fc2eb (patch)
tree44ff2e60055508000f474ba9bb21eb8485593526 /script-beta/proto
parent99638341030dfc794bfd5d292ef84be918add228 (diff)
downloadlua-language-server-3032729867c8975d433adc5de11cdc905d9fc2eb.zip
暂存
Diffstat (limited to 'script-beta/proto')
-rw-r--r--script-beta/proto/proto.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script-beta/proto/proto.lua b/script-beta/proto/proto.lua
index 5e1ad38f..f3438209 100644
--- a/script-beta/proto/proto.lua
+++ b/script-beta/proto/proto.lua
@@ -90,12 +90,14 @@ function m.doMethod(proto)
return
end
await.create(function ()
+ log.debug('Start method:', method)
local clock = os.clock()
local ok, res = xpcall(abil, log.error, proto.params)
local passed = os.clock() - clock
if passed > 0.2 then
log.debug(('Method [%s] takes [%.3f]sec.'):format(method, passed))
end
+ log.debug('Finish method:', method)
if not proto.id then
return
end