Don't log empty status or errors
This commit is contained in:
@@ -179,8 +179,12 @@ func (c *cli) tail(ctx provider.Context) {
|
|||||||
|
|
||||||
if c.dumplogs {
|
if c.dumplogs {
|
||||||
// Persist the full Docker output on error for easier debugging.
|
// Persist the full Docker output on error for easier debugging.
|
||||||
ctx.Log(diag.Info, b.String())
|
if b.Len() > 0 {
|
||||||
ctx.Log(diag.Error, c.err.String())
|
ctx.Log(diag.Info, b.String())
|
||||||
|
}
|
||||||
|
if c.err.Len() > 0 {
|
||||||
|
ctx.Log(diag.Error, c.err.String())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user