🐛 Fix: picgo.log path error

ISSUES CLOSED: #819
This commit is contained in:
PiEgg 2022-01-12 14:57:09 +08:00
parent 9d236ba6f4
commit 6b6ae271e8

View File

@ -97,7 +97,7 @@ function dbPathChecker (): string {
} }
return _configFilePath return _configFilePath
} catch (e) { } catch (e) {
const picgoLogPath = path.join(defaultConfigPath, 'picgo.log') const picgoLogPath = path.join(STORE_PATH, 'picgo.log')
const logger = getLogger(picgoLogPath) const logger = getLogger(picgoLogPath)
if (!hasCheckPath) { if (!hasCheckPath) {
const optionsTpl = { const optionsTpl = {