mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Client should use go log package.
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
parent
c6f242b88f
commit
a7aedca4a1
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/docker/docker/pkg/log"
|
||||
"log" // see gh#8745, client needs to use go log pkg
|
||||
)
|
||||
|
||||
const CanDaemon = false
|
||||
|
|
|
@ -5,13 +5,13 @@ import (
|
|||
"crypto/x509"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log" // see gh#8745, client needs to use go log pkg
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/docker/docker/api"
|
||||
"github.com/docker/docker/api/client"
|
||||
"github.com/docker/docker/dockerversion"
|
||||
"github.com/docker/docker/pkg/log"
|
||||
flag "github.com/docker/docker/pkg/mflag"
|
||||
"github.com/docker/docker/reexec"
|
||||
"github.com/docker/docker/utils"
|
||||
|
@ -106,7 +106,7 @@ func main() {
|
|||
if err := cli.Cmd(flag.Args()...); err != nil {
|
||||
if sterr, ok := err.(*utils.StatusError); ok {
|
||||
if sterr.Status != "" {
|
||||
log.Infof("%s", sterr.Status)
|
||||
log.Println("%s", sterr.Status)
|
||||
}
|
||||
os.Exit(sterr.StatusCode)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue