diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-20 11:06:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-20 11:06:59 +0800 |
commit | 968f487a581b7f242193feef5f1bb9857450c13a (patch) | |
tree | ceef56dbcbe34816f482c393f0afd83369d80d05 /server | |
parent | 19aedecc1d66b4e6af437a2d3106d16e054b29a5 (diff) | |
download | lua-language-server-968f487a581b7f242193feef5f1bb9857450c13a.zip |
减少一些日志
Diffstat (limited to 'server')
-rw-r--r-- | server/src/service.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/service.lua b/server/src/service.lua index d6a0daf0..1b77c2a9 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -35,7 +35,7 @@ function mt:_callMethod(name, params) local clock = os.clock() local suc, res = xpcall(f, log.error, self, params) local passed = os.clock() - clock - if passed > 0.01 then + if passed > 0.1 then log.debug(('Task [%s] takes [%.3f]sec.'):format(name, passed)) end if suc then @@ -102,7 +102,7 @@ function mt:_doDiagnostic() end end local passed = os.clock() - clock - if passed > 0.01 then + if passed > 0.1 then log.debug(('\n\z Diagnostics completion\n\z Cost: [%.3f]sec\n\z @@ -136,7 +136,7 @@ function mt:_buildTextCache() size = size + #obj.text end local passed = os.clock() - clock - if passed > 0.01 then + if passed > 0.1 then log.debug(('\n\z Cache completion\n\z Cost: [%.3f]sec\n\z @@ -229,7 +229,7 @@ function mt:on_tick() self:_buildTextCache() self:_doDiagnostic() - if os.clock() - self._clock >= 60 then + if os.clock() - self._clock >= 600 then self._clock = os.clock() local count = 0 for _ in pairs(self._file) do |