Skip to content

Commit fb82caf

Browse files
authored
Merge pull request #1194 from SocalNick/nc--send-status-to-migration-context-logger-simple-alternative
Print status to migrationContext logger
2 parents 96d708c + ca12039 commit fb82caf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

go/logic/migrator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,7 @@ func (this *Migrator) printStatus(rule PrintStatusRule, writers ...io.Writer) {
10361036
)
10371037
w := io.MultiWriter(writers...)
10381038
fmt.Fprintln(w, status)
1039+
this.migrationContext.Log.Infof(status)
10391040

10401041
hooksStatusIntervalSec := this.migrationContext.HooksStatusIntervalSec
10411042
if hooksStatusIntervalSec > 0 && elapsedSeconds%hooksStatusIntervalSec == 0 {

0 commit comments

Comments
 (0)