mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2025-02-22 10:03:56 -08:00
Mask access token in logs.
This commit is contained in:
parent
e5c48d3fff
commit
08262f7ef1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user