Move navToEnd logging line

pull/3/head
Daniel Lauzon 4 years ago
parent 2b17b21027
commit c224e2fe01

@ -312,9 +312,6 @@ func navToEnd(ctx context.Context) error {
} }
prev = active prev = active
} }
if *verboseFlag {
log.Printf("Successfully jumped to the end: %s", active)
}
chromedp.KeyEvent("\n").Do(ctx) chromedp.KeyEvent("\n").Do(ctx)
time.Sleep(tick) time.Sleep(tick)
@ -323,8 +320,11 @@ func navToEnd(ctx context.Context) error {
return err return err
} }
log.Printf("Entered Detail Page: %s", location) if active == location {
time.Sleep(tick) if *verboseFlag {
log.Printf("Successfully jumped to the end: %s", location)
}
}
return nil return nil
} }

Loading…
Cancel
Save