Use debugf to allow parsing of format specifier

Signed-off-by: Suraj Deshmukh <surajd.service@gmail.com>
This commit is contained in:
Suraj Deshmukh
2017-12-05 12:08:08 +05:30
parent b85d0fa4ea
commit e64da85ccb
6 changed files with 10 additions and 13 deletions

View File

@ -71,7 +71,7 @@ func attachCmd(c *cli.Context) error {
wg.Add(1)
// Attach to the running container
go func() {
logrus.Debug("trying to attach to the container %s", ctr.ID())
logrus.Debugf("trying to attach to the container %s", ctr.ID())
defer wg.Done()
if err := ctr.Attach(c.Bool("no-stdin"), c.String("detach-keys"), attached); err != nil {
logrus.Errorf("unable to attach to container %s: %q", ctr.ID(), err)