Merge pull request #4888 from influxdb/tsm1dev_log

Enhance tsm1dev logging
pull/4864/head
Philip O'Toole 2015-11-23 14:29:45 -08:00
commit 778d0728fb
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ func NewDevEngine(path string, walPath string, opt tsdb.EngineOptions) tsdb.Engi
e := &DevEngine{ e := &DevEngine{
path: path, path: path,
logger: log.New(os.Stderr, "[tsm1] ", log.LstdFlags), logger: log.New(os.Stderr, "[tsm1dev] ", log.LstdFlags),
WAL: w, WAL: w,
RotateFileSize: DefaultRotateFileSize, RotateFileSize: DefaultRotateFileSize,

View File

@ -70,7 +70,7 @@ func NewWAL(path string) *WAL {
// these options should be overriden by any options in the config // these options should be overriden by any options in the config
LogOutput: os.Stderr, LogOutput: os.Stderr,
SegmentSize: DefaultSegmentSize, SegmentSize: DefaultSegmentSize,
logger: log.New(os.Stderr, "[tsm1wal] ", log.LstdFlags), logger: log.New(os.Stderr, "[tsm1devwal] ", log.LstdFlags),
closing: make(chan struct{}), closing: make(chan struct{}),
} }
} }