test: use test name as log prefix

This commit is contained in:
Frank Schroeder 2017-05-31 09:54:09 +02:00
parent c587561572
commit cfe101ce49
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.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
if err := agent.Start(); err == nil {