Merge pull request #521 from hydralauncher/feat/change-logs-path

Change logs path to match hydra.db
This commit is contained in:
Zamitto
2024-05-26 19:51:13 -03:00
committed by GitHub
3 changed files with 3 additions and 6 deletions

View File

@@ -1,11 +1,7 @@
import { app } from "electron";
import { logsPath } from "@main/constants";
import log from "electron-log";
import path from "path";
const logsPath = app.isPackaged
? path.join(app.getAppPath(), "..", "..", "logs")
: path.join(app.getAppPath(), "logs");
log.transports.file.resolvePathFn = (
_: log.PathVariables,
message?: log.LogMessage | undefined