summaryrefslogtreecommitdiff
path: root/server/src/workspace.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/workspace.lua')
-rw-r--r--server/src/workspace.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/workspace.lua b/server/src/workspace.lua
index aefabb04..5582ca8d 100644
--- a/server/src/workspace.lua
+++ b/server/src/workspace.lua
@@ -74,6 +74,9 @@ function mt:init(rootUri)
return
end
log.info('Workspace inited, root: ', self.root)
+ local logPath = ROOT / 'log' / (rootUri:gsub('[/:]+', '_') .. '.log')
+ log.info('Log path: ', logPath)
+ log.init(ROOT, logPath)
async.call([[
require 'utility'
local fs = require 'bee.filesystem'