Remove some bullshit warnings
This commit is contained in:
@@ -182,7 +182,7 @@ func syncConfigs(config *Config) error {
|
|||||||
}
|
}
|
||||||
} else if normalizeContent(existingContent) != normalizeContent(expectedContent) {
|
} else if normalizeContent(existingContent) != normalizeContent(expectedContent) {
|
||||||
// File exists but content differs
|
// File exists but content differs
|
||||||
fileLogger.Warning("File content differs, updating")
|
fileLogger.Info("File content differs, updating")
|
||||||
updated++
|
updated++
|
||||||
|
|
||||||
// Show detailed diff of what's changing
|
// Show detailed diff of what's changing
|
||||||
@@ -207,7 +207,7 @@ func syncConfigs(config *Config) error {
|
|||||||
orphanedCount++
|
orphanedCount++
|
||||||
orphanLogger := logger.WithPrefix(fmt.Sprintf("orphan=%s", filename))
|
orphanLogger := logger.WithPrefix(fmt.Sprintf("orphan=%s", filename))
|
||||||
if *delete {
|
if *delete {
|
||||||
orphanLogger.Warning("Deleting orphaned file")
|
orphanLogger.Info("Deleting orphaned file")
|
||||||
if !*dryRun {
|
if !*dryRun {
|
||||||
if err := os.Remove(filename); err != nil {
|
if err := os.Remove(filename); err != nil {
|
||||||
return fmt.Errorf("failed to delete file %s: %w", filename, err)
|
return fmt.Errorf("failed to delete file %s: %w", filename, err)
|
||||||
|
|||||||
Reference in New Issue
Block a user