fisx(clustertool): signficantly redice verbosity on encryption/decryption/check code.
This commit is contained in:
@@ -56,7 +56,7 @@ func DecryptFiles() error {
|
|||||||
log.Error().Err(err).Msgf("Error writing decrypted data to file %s", file.Path)
|
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)
|
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)
|
initfiles.LoadTalEnv(true)
|
||||||
log.Trace().Msg("Finished DecryptFiles function")
|
log.Info().Msg("All files decrypted successfully")
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ func LoadSopsConfig() (SopsConfig, error) {
|
|||||||
log.Debug().Msg("Successfully unmarshaled YAML data into struct")
|
log.Debug().Msg("Successfully unmarshaled YAML data into struct")
|
||||||
|
|
||||||
// Log the loaded struct
|
// Log the loaded struct
|
||||||
log.Info().Msg("Loaded SopsConfig successfully")
|
log.Debug().Msg("Loaded SopsConfig successfully")
|
||||||
log.Debug().Interface("loaded SOPS Config", config)
|
log.Debug().Interface("loaded SOPS Config", config)
|
||||||
|
|
||||||
return config, nil
|
return config, nil
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ func EncryptWithAgeKey(body []byte, regex string, format string) ([]byte, error)
|
|||||||
return nil, fmt.Errorf("error encrypting data: %v", err)
|
return nil, fmt.Errorf("error encrypting data: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info().Msg("Data encrypted successfully")
|
log.Debug().Msg("Data encrypted successfully")
|
||||||
return encryptedData, nil
|
return encryptedData, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -186,6 +186,6 @@ func (m *cypher) Encrypt(content []byte, encrConfig EncryptionConfig) (result []
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info().Msg("Tree encrypted successfully")
|
log.Debug().Msg("Tree encrypted successfully")
|
||||||
return store.EmitEncryptedFile(tree)
|
return store.EmitEncryptedFile(tree)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user