Skip to content

Commit c216c96

Browse files
committed
Merge branch '219-hide-job-options' into 'master'
fix: remove job options from logs (#219) Closes #219 See merge request postgres-ai/database-lab!230
2 parents 34be5e1 + 0dc3bb7 commit c216c96

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/retrieval/engine/postgres/logical/dump.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (d *DumpJob) Reload(cfg map[string]interface{}) (err error) {
204204

205205
// Run starts the job.
206206
func (d *DumpJob) Run(ctx context.Context) (err error) {
207-
log.Msg(fmt.Sprintf("Run job: %s. Options: %v", d.Name(), d.DumpOptions))
207+
log.Msg("Run job: ", d.Name())
208208

209209
isEmpty, err := tools.IsEmptyDirectory(d.globalCfg.DataDir())
210210
if err != nil {

pkg/retrieval/engine/postgres/logical/restore.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (r *RestoreJob) Reload(cfg map[string]interface{}) (err error) {
110110

111111
// Run starts the job.
112112
func (r *RestoreJob) Run(ctx context.Context) (err error) {
113-
log.Msg(fmt.Sprintf("Run job: %s. Options: %v", r.Name(), r.RestoreOptions))
113+
log.Msg("Run job: ", r.Name())
114114

115115
isEmpty, err := tools.IsEmptyDirectory(r.globalCfg.DataDir())
116116
if err != nil {

pkg/retrieval/engine/postgres/physical/physical.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (r *RestoreJob) Reload(cfg map[string]interface{}) (err error) {
145145

146146
// Run starts the job.
147147
func (r *RestoreJob) Run(ctx context.Context) (err error) {
148-
log.Msg(fmt.Sprintf("Run job: %s. Options: %v", r.Name(), r.CopyOptions))
148+
log.Msg("Run job: ", r.Name())
149149

150150
defer func() {
151151
if err == nil && r.CopyOptions.Sync.Enabled {

0 commit comments

Comments
 (0)