]> Cypherpunks repositories - gostls13.git/commitdiff
log.Stderr should actually go to stderr.
authorDavid Symonds <dsymonds@golang.org>
Tue, 31 Mar 2009 02:01:59 +0000 (19:01 -0700)
committerDavid Symonds <dsymonds@golang.org>
Tue, 31 Mar 2009 02:01:59 +0000 (19:01 -0700)
R=r
APPROVED=r
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=26926
CL=26928

src/lib/log.go

index 7a81eb63d62e07a68a104a916b53288e71f71f1c..34158c789ebf78df2c37f7e62f537d1bdc36539a 100644 (file)
@@ -160,7 +160,7 @@ func Stdout(v ...) {
 
 // Stderr is a helper function for easy logging to stderr. It is analogous to Fprint(os.Stderr).
 func Stderr(v ...) {
-       stdout.Output(2, fmt.Sprintln(v))
+       stderr.Output(2, fmt.Sprintln(v))
 }
 
 // Stdoutf is a helper functions for easy formatted logging to stdout. It is analogous to Printf().