Skip to content

Commit

Permalink
fisx(clustertool): signficantly redice verbosity on encryption/decryp…
Browse files Browse the repository at this point in the history
…tion/check code.
  • Loading branch information
PrivatePuffin committed Oct 26, 2024
1 parent ad23108 commit b16bd48
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions clustertool/pkg/sops/decrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func DecryptFiles() error {
log.Error().Err(err).Msgf("Error writing decrypted data to file %s", file.Path)
return fmt.Errorf("error writing decrypted data to file %s: %v", file.Path, err)
}
log.Info().Msgf("Successfully decrypted file: %s", file.Path)
log.Debug().Msgf("Successfully decrypted file: %s", file.Path)
}
}

Expand All @@ -66,7 +66,7 @@ func DecryptFiles() error {
}

initfiles.LoadTalEnv(true)
log.Trace().Msg("Finished DecryptFiles function")
log.Info().Msg("All files decrypted successfully")
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion clustertool/pkg/sops/loadsops.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func LoadSopsConfig() (SopsConfig, error) {
log.Debug().Msg("Successfully unmarshaled YAML data into struct")

// Log the loaded struct
log.Info().Msg("Loaded SopsConfig successfully")
log.Debug().Msg("Loaded SopsConfig successfully")
log.Debug().Interface("loaded SOPS Config", config)

return config, nil
Expand Down
4 changes: 2 additions & 2 deletions clustertool/pkg/sops/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func EncryptWithAgeKey(body []byte, regex string, format string) ([]byte, error)
return nil, fmt.Errorf("error encrypting data: %v", err)
}

log.Info().Msg("Data encrypted successfully")
log.Debug().Msg("Data encrypted successfully")
return encryptedData, nil
}

Expand Down Expand Up @@ -186,6 +186,6 @@ func (m *cypher) Encrypt(content []byte, encrConfig EncryptionConfig) (result []
return nil, err
}

log.Info().Msg("Tree encrypted successfully")
log.Debug().Msg("Tree encrypted successfully")
return store.EmitEncryptedFile(tree)
}

0 comments on commit b16bd48

Please sign in to comment.