Skip to content

Commit 12230ec

Browse files
committed
fix: add new log fenix for log retrieval
1 parent aef5565 commit 12230ec

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

lib/agent/actions/logretrieval/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ exports.collectFiles = (outputFile, cb) => {
7070
{ path: ROTATED_PATH, name: 'prey.log.1.gz' },
7171
...(os.platform() === 'win32' ? [ // Only for windows add admin service logs
7272
{ path: WINSVC_LOG, name: 'winsvc.log' },
73-
{ path: FENIX_LOG_PATH, name: 'fenix.log' },
73+
{ path: paths.program_data, name: 'fenix.log' },
74+
// { path: FENIX_LOG_PATH, name: 'fenix.log' },
7475
{ path: WINSVC_UPDATER, name: 'updater.log' },
7576
] : []),
7677
];

lib/system/windows/paths.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
exports.bin = 'prey.cmd';
2-
exports.config = process.env.WINDIR + '\\Prey'; // __dirname + '/../../../'
3-
exports.temp = process.env.WINDIR + '\\Temp';
4-
exports.log = exports.config;
5-
exports.log_file = exports.log + '\\prey.log';
6-
exports.log_restarts = exports.log + '\\prey_restarts.log';
1+
exports.bin = 'prey.cmd';
2+
exports.config = `${process.env.WINDIR}\\Prey`; // __dirname + '/../../../'
3+
exports.temp = `${process.env.WINDIR}\\Temp`;
4+
exports.program_data = `${process.env.WINDIR}\\..\\ProgramData\\prey`;
5+
exports.log = exports.config;
6+
exports.log_file = `${exports.log}\\prey.log`;
7+
exports.log_restarts = `${exports.log}\\prey_restarts.log`;

0 commit comments

Comments
 (0)