summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-20 11:28:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-20 11:28:23 +0800
commit540da8f1fc680899c349204a5aa62d0ba2412054 (patch)
treee01d44a22332445139e8c1d185cb6c4a51957a13 /server
parent968f487a581b7f242193feef5f1bb9857450c13a (diff)
downloadlua-language-server-540da8f1fc680899c349204a5aa62d0ba2412054.zip
超时打印位置
Diffstat (limited to 'server')
-rw-r--r--server/src/rpc.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/rpc.lua b/server/src/rpc.lua
index ad98e7d5..99d96938 100644
--- a/server/src/rpc.lua
+++ b/server/src/rpc.lua
@@ -66,7 +66,9 @@ local function recieve(self, proto)
end
BUF[id] = nil
if data.timeout and os.clock() > data.timeout then
- log.warn('Recieve timeout: ', table.dump(proto.error))
+ log.warn('Recieve timeout: ', table.dump(proto))
+ local info = debug.getinfo(data.callback, 'S')
+ log.warn('Call back info: ', info.source, info.linedefined)
return
end
if proto.error then