diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-05 23:03:16 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-05 23:03:16 +0800 |
commit | c0cf9ae2835f9a19fe6a9af743ddd24be7c3a123 (patch) | |
tree | 503bec02eaffff462aa23f5cbb92af2983a6036c /script/provider/diagnostic.lua | |
parent | 8422502419f2a5138c2772aea60111fa7e9599aa (diff) | |
download | lua-language-server-c0cf9ae2835f9a19fe6a9af743ddd24be7c3a123.zip |
#1018 cleanup logs
Diffstat (limited to 'script/provider/diagnostic.lua')
-rw-r--r-- | script/provider/diagnostic.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/script/provider/diagnostic.lua b/script/provider/diagnostic.lua index ac93dc52..ef61d0c3 100644 --- a/script/provider/diagnostic.lua +++ b/script/provider/diagnostic.lua @@ -141,7 +141,7 @@ function m.clear(uri) uri = uri, diagnostics = {}, }) - log.debug('clearDiagnostics', uri) + log.info('clearDiagnostics', uri) end function m.clearCache(uri) @@ -370,7 +370,7 @@ function m.awaitDiagnosticsScope(suri) local bar <close> = progress.create(scope.getScope(suri), lang.script.WORKSPACE_DIAGNOSTIC, 1) local cancelled bar:onCancel(function () - log.debug('Cancel workspace diagnostics') + log.info('Cancel workspace diagnostics') cancelled = true ---@async await.call(function () @@ -398,12 +398,12 @@ function m.awaitDiagnosticsScope(suri) xpcall(m.doDiagnostic, log.error, uri, true) await.delay() if cancelled then - log.debug('Break workspace diagnostics') + log.info('Break workspace diagnostics') break end end bar:remove() - log.debug(('Diagnostics scope [%s] finished, takes [%.3f] sec.'):format(scp:getName(), os.clock() - clock)) + log.info(('Diagnostics scope [%s] finished, takes [%.3f] sec.'):format(scp:getName(), os.clock() - clock)) end function m.diagnosticsScope(uri, force) |