Skip to content

Commit

Permalink
Honor options.Verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
some-user123 committed Nov 3, 2022
1 parent 2586b38 commit e28d850
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions run.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ func (d *PlaywrightDriver) DownloadDriver() error {
return nil
}

log.Printf("Downloading driver to %s", d.DriverDirectory)
if d.options.Verbose {
log.Printf("Downloading driver to %s", d.DriverDirectory)
}
driverURL := d.getDriverURL()
resp, err := http.Get(driverURL)
if err != nil {
Expand Down Expand Up @@ -161,7 +163,9 @@ func (d *PlaywrightDriver) DownloadDriver() error {
}
}

log.Println("Downloaded driver successfully")
if d.options.Verbose {
log.Println("Downloaded driver successfully")
}
return nil
}

Expand Down

0 comments on commit e28d850

Please sign in to comment.