diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-05 17:12:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-05 17:12:00 +0800 |
commit | d8a982155d589f4b19dd1e066e4f01b90c66840f (patch) | |
tree | c48d1bb119572ed1cb9abb53ef85d797af427ff5 /script/core/diagnostics/init.lua | |
parent | cc0f8bcae6bd3a0820243145ef50e1e5bd9a54a1 (diff) | |
download | lua-language-server-d8a982155d589f4b19dd1e066e4f01b90c66840f.zip |
improve log
Diffstat (limited to 'script/core/diagnostics/init.lua')
-rw-r--r-- | script/core/diagnostics/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/init.lua b/script/core/diagnostics/init.lua index 09688f6e..b44d6a2c 100644 --- a/script/core/diagnostics/init.lua +++ b/script/core/diagnostics/init.lua @@ -57,7 +57,7 @@ local function check(uri, name, results) end, name) local passed = os.clock() - clock if passed >= 0.5 then - log.warn(('Diagnostics [%s] @ [%s] takes [%.3f] sec!'):format(name, uri, passed)) + log.warn(('Diagnostics [%s] @ [%s] takes [%.3f] sec!'):format(name, files.getOriginUri(uri), passed)) end if DIAGTIMES then DIAGTIMES[name] = (DIAGTIMES[name] or 0) + passed |