Skip to content
This repository was archived by the owner on Oct 24, 2021. It is now read-only.

Commit

Permalink
fix: update log location (#51)
Browse files Browse the repository at this point in the history
* chore: fix vulnerability warning

* fix: update log location
  • Loading branch information
Hoishin authored Dec 13, 2019
1 parent 894e278 commit 8bd4675
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/LogWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ const log = debug('hlp');
// Determine the default location of the config and log files.
if (/^win/.test(os.platform())) {
log('Windows platform detected.');
let programFiles = 'Program Files';
if (/64/.test(os.arch())) {
programFiles += ' (x86)';
}

defaultOptions.logFile = path.join('C:', programFiles, 'Hearthstone', 'Hearthstone_Data', 'output_log.txt');
if (process.env.UserProfile) {
defaultOptions.logFile = path.join(process.env.UserProfile, 'AppData', 'LocalLow', 'Blizzard Entertainment', 'Hearthstone', 'output_log.txt');
}

if (process.env.LOCALAPPDATA) {
defaultOptions.configFile = path.join(process.env.LOCALAPPDATA, 'Blizzard', 'Hearthstone', 'log.config');
Expand Down

0 comments on commit 8bd4675

Please sign in to comment.