Commit f1af2ecb authored by Andrey Mirtchovski's avatar Andrey Mirtchovski Committed by Rob Pike

doc/codewalk: update for changes in log package

R=adg, r
CC=golang-dev
https://golang.org/cl/2984041
parent 11ace8e9
......@@ -52,9 +52,9 @@ func StateMonitor(updateInterval int64) chan<- State {
// logState prints a state map.
func logState(s map[string]string) {
log.Stdout("Current state:")
log.Println("Current state:")
for k, v := range s {
log.Stdoutf(" %s %s", k, v)
log.Printf(" %s %s", k, v)
}
}
......@@ -69,7 +69,7 @@ type Resource struct {
func (r *Resource) Poll() string {
resp, err := http.Head(r.url)
if err != nil {
log.Stderr("Error", r.url, err)
log.Println("Error", r.url, err)
r.errCount++
return err.String()
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment