Skip to content

Commit

Permalink
Mask access token in logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dscalzi committed Feb 21, 2025
1 parent e5c48d3 commit 08262f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/assets/js/processbuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ class ProcessBuilder {
args = args.concat(this.constructModList(modObj.fMods))
}

logger.info('Launch Arguments:', args)
// Hide access token
const loggableArgs = [...args]
loggableArgs[loggableArgs.findIndex(x => x === this.authUser.accessToken)] = '**********'

logger.info('Launch Arguments:', loggableArgs)

const child = child_process.spawn(ConfigManager.getJavaExecutable(this.server.rawServer.id), args, {
cwd: this.gameDir,
Expand Down

0 comments on commit 08262f7

Please sign in to comment.