From 6b6ae271e8f60eb78abd2015cfbc578e76afbd3b Mon Sep 17 00:00:00 2001 From: PiEgg Date: Wed, 12 Jan 2022 14:57:09 +0800 Subject: [PATCH] :bug: Fix: picgo.log path error ISSUES CLOSED: #819 --- src/main/apis/core/datastore/dbChecker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/apis/core/datastore/dbChecker.ts b/src/main/apis/core/datastore/dbChecker.ts index e346ae3..30966fb 100644 --- a/src/main/apis/core/datastore/dbChecker.ts +++ b/src/main/apis/core/datastore/dbChecker.ts @@ -97,7 +97,7 @@ function dbPathChecker (): string { } return _configFilePath } catch (e) { - const picgoLogPath = path.join(defaultConfigPath, 'picgo.log') + const picgoLogPath = path.join(STORE_PATH, 'picgo.log') const logger = getLogger(picgoLogPath) if (!hasCheckPath) { const optionsTpl = {