From fa32948508f435993537e57fbcfefa96a94b7093 Mon Sep 17 00:00:00 2001 From: James Long Date: Fri, 29 Apr 2022 10:42:04 -0400 Subject: [PATCH] Log which file dir it uses --- app-sync.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app-sync.js b/app-sync.js index d9d80bd..ca56cdb 100644 --- a/app-sync.js +++ b/app-sync.js @@ -19,9 +19,13 @@ const app = express(); app.use(errorMiddleware); async function init() { + let fileDir = join(__dirname, process.env.ACTUAL_USER_FILES || config.files); + + console.log('Initializing Actual with user file dir:', fileDir); + await actual.init({ config: { - dataDir: join(__dirname, process.env.ACTUAL_USER_FILES || config.files) + dataDir: fileDir } }); }