From 6771950c95b467bc6fe881732f32be41254a255d Mon Sep 17 00:00:00 2001 From: Matt Jadud Date: Mon, 4 Mar 2024 16:49:03 -0500 Subject: [PATCH] Adding a debug print for remote testing. --- internal/pipes/pg_dump.go | 1 + internal/pipes/s3.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/pipes/pg_dump.go b/internal/pipes/pg_dump.go index 6bfca02..612bb60 100644 --- a/internal/pipes/pg_dump.go +++ b/internal/pipes/pg_dump.go @@ -31,6 +31,7 @@ func PG_Dump(creds *vcap.CredentialsRDS) *script.Pipe { } // Combine the slice for printing and execution. combined := strings.Join(cmd[:], " ") + fmt.Printf("command: %s\n", combined) logging.Logger.Printf("BACKUPS pg_dump targeting %s", creds.DB_Name) return script.Exec(combined) } diff --git a/internal/pipes/s3.go b/internal/pipes/s3.go index e95ea5c..25e997d 100644 --- a/internal/pipes/s3.go +++ b/internal/pipes/s3.go @@ -27,6 +27,7 @@ func S3(in_pipe *script.Pipe, up *vcap.CredentialsS3, prefix string, source_db s // Combine the slice for printing and execution. combined := strings.Join(cmd[:], " ") + fmt.Printf("command: %s", combined) logging.Logger.Printf("BACKUPS s3 targeting %s", prefix) return in_pipe.Exec(combined) }