Skip to content

Commit

Permalink
Merge pull request #1194 from SocalNick/nc--send-status-to-migration-…
Browse files Browse the repository at this point in the history
…context-logger-simple-alternative

Print status to migrationContext logger
  • Loading branch information
dm-2 authored Nov 14, 2022
2 parents 96d708c + ca12039 commit fb82caf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/logic/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,7 @@ func (this *Migrator) printStatus(rule PrintStatusRule, writers ...io.Writer) {
)
w := io.MultiWriter(writers...)
fmt.Fprintln(w, status)
this.migrationContext.Log.Infof(status)

hooksStatusIntervalSec := this.migrationContext.HooksStatusIntervalSec
if hooksStatusIntervalSec > 0 && elapsedSeconds%hooksStatusIntervalSec == 0 {
Expand Down

0 comments on commit fb82caf

Please sign in to comment.