mirror of
https://github.com/docker/compose.git
synced 2025-07-10 07:14:27 +02:00
TailMsgf must format with args
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
e606701d9f
commit
07c4849cb9
@ -53,12 +53,12 @@ func (p *plainWriter) Events(events []Event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *plainWriter) TailMsgf(m string, args ...interface{}) {
|
func (p *plainWriter) TailMsgf(msg string, args ...interface{}) {
|
||||||
prefix := ""
|
msg = fmt.Sprintf(msg, args...)
|
||||||
if p.dryRun {
|
if p.dryRun {
|
||||||
prefix = api.DRYRUN_PREFIX
|
msg = api.DRYRUN_PREFIX + msg
|
||||||
}
|
}
|
||||||
fmt.Fprintln(p.out, append([]interface{}{prefix, m}, args...)...)
|
fmt.Fprintln(p.out, msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *plainWriter) Stop() {
|
func (p *plainWriter) Stop() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user