Skip to content

Commit

Permalink
removing log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
harshitsinghvi22 committed Jul 4, 2024
1 parent f19b4f9 commit 6cc08e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions neo4j-admin/backup/aws/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ func (a *awsClient) GenerateEnvVariablesFromCredentials() error {
if err != nil {
return err
}
log.Printf("creds %v", creds)
err = os.Setenv("AWS_ACCESS_KEY_ID", creds.AccessKeyID)
if err != nil {
return err
Expand All @@ -155,7 +154,6 @@ func (a *awsClient) GenerateEnvVariablesFromCredentials() error {
if err != nil {
return err
}
log.Println("aws env variables", os.Getenv("AWS_REGION"), os.Getenv("AWS_SECRET_ACCESS_KEY"), os.Getenv("AWS_ACCESS_KEY_ID"))
return nil
}

Expand Down
2 changes: 0 additions & 2 deletions neo4j-admin/backup/main/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ func awsOperations() {

if aggregateEnabled := os.Getenv("AGGREGATE_BACKUP_ENABLED"); aggregateEnabled == "true" {

log.Println("credential path", credentialPath)
//service account is NOT used hence env variables need to be set for aggregate backup operation
if credentialPath != "/credentials/" {
log.Println("generating env variables from creds")
err = awsClient.GenerateEnvVariablesFromCredentials()
handleError(err)
}
Expand Down

0 comments on commit 6cc08e1

Please sign in to comment.