Skip to content

Commit

Permalink
Merge pull request #79 from skalenetwork/ticket-910-hide-sensitive-da…
Browse files Browse the repository at this point in the history
…ta-in-agent-log-after-start-IN-DEVELOP

ticket-910 Hide sensitive data in agent log after start
  • Loading branch information
sergiy-skalelabs authored Feb 1, 2024
2 parents 8d8b83d + fb7d71a commit 48a7462
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 48a7462

Please sign in to comment.