fisx(clustertool): signficantly redice verbosity on encryption/decryption/check code.

This commit is contained in:
Kjeld Schouten
2024-10-26 14:40:42 +02:00
parent ad23108ab3
commit b16bd485cf
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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)
}
}
@@ -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
}
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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
}
@@ -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)
}