From f1af2ecbab6ad272f32482530e45dc0c53847f09 Mon Sep 17 00:00:00 2001 From: Andrey Mirtchovski Date: Mon, 8 Nov 2010 09:58:57 -0800 Subject: [PATCH] doc/codewalk: update for changes in log package R=adg, r CC=golang-dev https://golang.org/cl/2984041 --- doc/codewalk/urlpoll.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/codewalk/urlpoll.go b/doc/codewalk/urlpoll.go index 2629f2b68fb..b51be9502cb 100644 --- a/doc/codewalk/urlpoll.go +++ b/doc/codewalk/urlpoll.go @@ -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() }