Skip to content

Commit

Permalink
roachtest: fix a recently-introduced logging bug
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
andreimatei committed Oct 24, 2018
1 parent 06c6f9d commit 82c9e45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/roachtest/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ func (cfg *loggerConfig) newLogger(path string) (*logger, error) {

stdout := newWriter(cfg.stdout)
stderr := newWriter(cfg.stderr)
stdoutL := log.New(cfg.stdout, cfg.prefix, logFlags)
stdoutL := log.New(stdout, cfg.prefix, logFlags)
var stderrL *log.Logger
if cfg.stdout != cfg.stderr {
stderrL = log.New(cfg.stderr, cfg.prefix, logFlags)
stderrL = log.New(stderr, cfg.prefix, logFlags)
} else {
stderrL = stdoutL
}
Expand Down

0 comments on commit 82c9e45

Please sign in to comment.