summaryrefslogtreecommitdiff
path: root/server-beta/src/workspace
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-08 16:44:47 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-08 16:44:47 +0800
commit2c0db6c014b5b3d1dd48167f9f9bf9f4f65841bd (patch)
treecda4f8d7f7c2de643cad0b0c48562a24155ed583 /server-beta/src/workspace
parentcccdf9fef2ed9cf4d554b9beea6386d0ac19e9bd (diff)
downloadlua-language-server-2c0db6c014b5b3d1dd48167f9f9bf9f4f65841bd.zip
修正一些bug
Diffstat (limited to 'server-beta/src/workspace')
-rw-r--r--server-beta/src/workspace/workspace.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server-beta/src/workspace/workspace.lua b/server-beta/src/workspace/workspace.lua
index 67f4f875..b335c51a 100644
--- a/server-beta/src/workspace/workspace.lua
+++ b/server-beta/src/workspace/workspace.lua
@@ -18,6 +18,10 @@ function m.init(name, uri)
m.name = name
m.uri = uri
m.path = furi.decode(uri)
+ log.info('Workspace inited: ', uri)
+ local logPath = ROOT / 'log' / (uri:gsub('[/:]+', '_') .. '.log')
+ log.info('Log path: ', logPath)
+ log.init(ROOT, logPath)
end
--- 创建排除文件匹配器