test: use test name as log prefix

This commit is contained in:
Frank Schroeder 2017-05-31 09:54:09 +02:00
parent d6c7404b34
commit 345666bdb6
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ func (a *TestAgent) Start() *TestAgent {
} }
agent.LogOutput = logOutput agent.LogOutput = logOutput
agent.LogWriter = a.LogWriter agent.LogWriter = a.LogWriter
agent.logger = log.New(logOutput, id, log.LstdFlags) agent.logger = log.New(logOutput, a.Name+" - ", log.LstdFlags)
// we need the err var in the next exit condition // we need the err var in the next exit condition
if err := agent.Start(); err == nil { if err := agent.Start(); err == nil {