Skip to content

Commit

Permalink
Use logger in state wait for gcp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Genevieve LEsperance committed May 5, 2018
1 parent 7c9519c commit 02f2edf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gcp/common/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package common

import (
"fmt"
"log"
"time"
)

Expand Down Expand Up @@ -133,7 +132,7 @@ func (s *State) Wait() (interface{}, error) {
wait = 10 * time.Second
}

log.Printf("Waiting %s before next try.", wait)
s.logger.Printf("Waiting %s before next try.", wait)
}
}()

Expand Down Expand Up @@ -183,7 +182,7 @@ func (s *State) Wait() (interface{}, error) {
// TimeoutError and wait for the channel to close
lastResult = r
case <-timeout:
log.Printf("Waiting for state DONE exceeded refresh grace period.")
s.logger.Printf("Waiting for state DONE exceeded refresh grace period.")
break forSelect
}
}
Expand Down

0 comments on commit 02f2edf

Please sign in to comment.