Merge pull request #1194 from SocalNick/nc--send-status-to-migration-context-logger-simple-alternative
Print status to migrationContext logger
This commit is contained in:
commit
fb82caf9e7
@ -1036,6 +1036,7 @@ func (this *Migrator) printStatus(rule PrintStatusRule, writers ...io.Writer) {
|
|||||||
)
|
)
|
||||||
w := io.MultiWriter(writers...)
|
w := io.MultiWriter(writers...)
|
||||||
fmt.Fprintln(w, status)
|
fmt.Fprintln(w, status)
|
||||||
|
this.migrationContext.Log.Infof(status)
|
||||||
|
|
||||||
hooksStatusIntervalSec := this.migrationContext.HooksStatusIntervalSec
|
hooksStatusIntervalSec := this.migrationContext.HooksStatusIntervalSec
|
||||||
if hooksStatusIntervalSec > 0 && elapsedSeconds%hooksStatusIntervalSec == 0 {
|
if hooksStatusIntervalSec > 0 && elapsedSeconds%hooksStatusIntervalSec == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user