diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-20 11:28:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-20 11:28:23 +0800 |
commit | 540da8f1fc680899c349204a5aa62d0ba2412054 (patch) | |
tree | e01d44a22332445139e8c1d185cb6c4a51957a13 /server | |
parent | 968f487a581b7f242193feef5f1bb9857450c13a (diff) | |
download | lua-language-server-540da8f1fc680899c349204a5aa62d0ba2412054.zip |
超时打印位置
Diffstat (limited to 'server')
-rw-r--r-- | server/src/rpc.lua | 4 |
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 |