diff --git a/bin/README.md b/bin/README.md index 6f86e15..5c1f37a 100644 --- a/bin/README.md +++ b/bin/README.md @@ -4,8 +4,8 @@ This directory contains pre-compiled binaries for the DB Backup Tool across mult ## Build Information - **Version**: 1.1.0 -- **Build Time**: 2025-11-05_13:00:26_UTC -- **Git Commit**: cea19ca +- **Build Time**: 2025-11-05_13:06:25_UTC +- **Git Commit**: f2f6021 ## Recent Updates (v1.1.0) - ✅ Fixed TUI progress display with line-by-line output diff --git a/bin/dbbackup_darwin_amd64 b/bin/dbbackup_darwin_amd64 index 683ef2d..3c92428 100755 Binary files a/bin/dbbackup_darwin_amd64 and b/bin/dbbackup_darwin_amd64 differ diff --git a/bin/dbbackup_darwin_arm64 b/bin/dbbackup_darwin_arm64 index 32d356e..04d8c2e 100755 Binary files a/bin/dbbackup_darwin_arm64 and b/bin/dbbackup_darwin_arm64 differ diff --git a/bin/dbbackup_freebsd_amd64 b/bin/dbbackup_freebsd_amd64 index 711710a..1b22c8d 100755 Binary files a/bin/dbbackup_freebsd_amd64 and b/bin/dbbackup_freebsd_amd64 differ diff --git a/bin/dbbackup_linux_amd64 b/bin/dbbackup_linux_amd64 index b823c63..b86284d 100755 Binary files a/bin/dbbackup_linux_amd64 and b/bin/dbbackup_linux_amd64 differ diff --git a/bin/dbbackup_linux_arm64 b/bin/dbbackup_linux_arm64 index e4a4c9e..08bf432 100755 Binary files a/bin/dbbackup_linux_arm64 and b/bin/dbbackup_linux_arm64 differ diff --git a/bin/dbbackup_linux_arm_armv7 b/bin/dbbackup_linux_arm_armv7 index 6af3119..b69e403 100755 Binary files a/bin/dbbackup_linux_arm_armv7 and b/bin/dbbackup_linux_arm_armv7 differ diff --git a/bin/dbbackup_netbsd_amd64 b/bin/dbbackup_netbsd_amd64 index 85c2619..c090f0b 100755 Binary files a/bin/dbbackup_netbsd_amd64 and b/bin/dbbackup_netbsd_amd64 differ diff --git a/bin/dbbackup_openbsd_amd64 b/bin/dbbackup_openbsd_amd64 index ccc5ffd..6d27bef 100755 Binary files a/bin/dbbackup_openbsd_amd64 and b/bin/dbbackup_openbsd_amd64 differ diff --git a/bin/dbbackup_windows_amd64.exe b/bin/dbbackup_windows_amd64.exe index e222190..2025a47 100755 Binary files a/bin/dbbackup_windows_amd64.exe and b/bin/dbbackup_windows_amd64.exe differ diff --git a/bin/dbbackup_windows_arm64.exe b/bin/dbbackup_windows_arm64.exe index 43f5bca..07a9813 100755 Binary files a/bin/dbbackup_windows_arm64.exe and b/bin/dbbackup_windows_arm64.exe differ diff --git a/dbbackup b/dbbackup index b823c63..b86284d 100755 Binary files a/dbbackup and b/dbbackup differ diff --git a/internal/logger/logger.go b/internal/logger/logger.go index 6f5d7cf..e8c24e4 100644 --- a/internal/logger/logger.go +++ b/internal/logger/logger.go @@ -227,24 +227,27 @@ func (f *CleanFormatter) Format(entry *logrus.Entry) ([]byte, error) { // Column 3: Message output.WriteString(entry.Message) - // Append important fields in a clean format (skip internal fields) + // Append important fields in a clean format (skip internal/redundant fields) if len(entry.Data) > 0 { + // Only show truly important fields, skip verbose ones for k, v := range entry.Data { - // Skip noisy internal fields - if k == "elapsed" || k == "operation_id" || k == "step" || k == "timestamp" { + // Skip noisy internal fields and redundant message field + if k == "elapsed" || k == "operation_id" || k == "step" || k == "timestamp" || k == "message" { continue } - // Format duration nicely + // Format duration nicely at the end if k == "duration" { if str, ok := v.(string); ok { - output.WriteString(fmt.Sprintf(" [duration: %s]", str)) + output.WriteString(fmt.Sprintf(" (%s)", str)) } continue } - // Add other fields - output.WriteString(fmt.Sprintf(" %s=%v", k, v)) + // Only show critical fields (driver, errors, etc) + if k == "driver" || k == "max_conns" || k == "error" || k == "database" { + output.WriteString(fmt.Sprintf(" %s=%v", k, v)) + } } }