mirror of https://github.com/status-im/consul.git
test: use test name as log prefix
This commit is contained in:
parent
d6c7404b34
commit
345666bdb6
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue