Skip to content

Commit

Permalink
ticket-910 Hide sensitive data in agent log after start
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiy-skalelabs committed Feb 1, 2024
1 parent 8d8b83d commit fb7d71a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ function parseCommandLine(): void {
log.add( imaState.strLogFilePath, imaState.nLogMaxSizeBeforeRotation,
imaState.nLogMaxFilesCount );
}
log.information( "Agent was started with {} command line argument(s) as: {}",
process.argv.length, strPrintedArguments );
if( imaState.isPrintSecurityValues ) {
log.information( "Agent was started with {} command line argument(s) as: {}",
process.argv.length, strPrintedArguments );
}
if( imaState.bIsNeededCommonInit ) {
imaCLI.commonInit();
imaCLI.initContracts();
Expand Down

0 comments on commit fb7d71a

Please sign in to comment.