diff options
author | Andrey Mirtchovski <mirtchovski@gmail.com> | 2010-11-08 09:58:57 -0800 |
---|---|---|
committer | Andrey Mirtchovski <mirtchovski@gmail.com> | 2010-11-08 09:58:57 -0800 |
commit | a6ff9e59105166857490ebed2161dba4d1444624 (patch) | |
tree | 491945cd12f2ff8995af887b09b127715fbc59c5 /doc | |
parent | 3f8a6b61fb8bcc972184d329beb3dd26fa65dedf (diff) | |
download | go-a6ff9e59105166857490ebed2161dba4d1444624.tar.gz |
doc/codewalk: update for changes in log package
R=adg, r
CC=golang-dev
http://codereview.appspot.com/2984041
Committer: Rob Pike <r@golang.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/codewalk/urlpoll.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/codewalk/urlpoll.go b/doc/codewalk/urlpoll.go index 2629f2b68..b51be9502 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() } |