Skip to content

Commit

Permalink
Merge branch 'fix/fenix-log-retrieval-win' into 'master'
Browse files Browse the repository at this point in the history
fix: fix to add fenix in log retrieval

See merge request prey/js/prey-node-client!1055
  • Loading branch information
beregcamlost committed Sep 13, 2024
2 parents 0399aa0 + 739439c commit ea82295
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/agent/actions/logretrieval/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ let em;
let cp;
let CONFIG_PATH;
let LOG_PATH;
let FENIX_LOG_PATH;
let COMMANDS_PATH;
let CONF_PATH;
let ROTATED_PATH;
Expand Down Expand Up @@ -64,7 +65,7 @@ const collectFiles = (outputFile, cb) => {
{ path: ROTATED_PATH, name: 'prey.log.1.gz' },
...(os.platform() === 'win32' ? [ // Only for windows add admin service logs
{ path: WINSVC_LOG, name: 'winsvc.log' },
{ path: LOG_PATH, name: 'fenix.log' },
{ path: FENIX_LOG_PATH, name: 'fenix.log' },
{ path: WINSVC_UPDATER, name: 'updater.log' },
] : []),
];
Expand Down Expand Up @@ -148,6 +149,7 @@ const done = (id, err) => {
exports.start = (id, options, cb) => {
CONFIG_PATH = paths.config;
LOG_PATH = paths.log_file;
FENIX_LOG_PATH = join(CONFIG_PATH, 'fenix.log');
COMMANDS_PATH = join(CONFIG_PATH, 'commands.db');
CONF_PATH = join(CONFIG_PATH, 'prey.conf');
ROTATED_PATH = join(CONFIG_PATH, 'prey.log.1.gz');
Expand Down

0 comments on commit ea82295

Please sign in to comment.