by default put logs in "logs" folder

Massimo Melina committed May 15, 2022 at 01:02 UTC a6175727a420bdce98b4ed03476f83f9a02023a4
2 files changed +2 -3
server/src/log.ts
+2 -2
@@ -45,12 +45,12 @@ const accessLogger = new Logger('log')
45 const accessErrorLog = new Logger('error_log')
46 export const loggers = [accessLogger, accessErrorLog]
47
48 -defineConfig('log', 'access.log').sub(path => {
48 +defineConfig('log', 'logs/access.log').sub(path => {
49 console.debug('access log file: ' + (path || 'disabled'))
50 accessLogger.setPath(path)
51 })
52
53 -const errorLogFile = defineConfig(accessErrorLog.name, 'access-error.log')
53 +const errorLogFile = defineConfig(accessErrorLog.name, 'logs/access-error.log')
54 errorLogFile.sub(path => {
55 console.debug('access error log: ' + (path || 'disabled'))
56 accessErrorLog.setPath(path)
todo.md
-1
@@ -1,5 +1,4 @@
1 # To do
2 -- move logs to dedicated folder
2 - fix: root without can_download breaks
3 - use dialogs instead of side-forms on mobile (admin/fs+accounts)
4 - easier deploy on cloud server