diff --git a/lib/agent/actions/logretrieval/index.js b/lib/agent/actions/logretrieval/index.js index 96cba5baa..ab851d9ce 100644 --- a/lib/agent/actions/logretrieval/index.js +++ b/lib/agent/actions/logretrieval/index.js @@ -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; @@ -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' }, ] : []), ]; @@ -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');