Skip to content

Commit

Permalink
Merge pull request #1192 from oiooj/pr-log-panic
Browse files Browse the repository at this point in the history
remove log format type check
  • Loading branch information
HusterWan authored Apr 24, 2018
2 parents 8d79306 + ee907b7 commit 24541df
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions cli/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ func (lc *LogsCommand) runLogs(args []string) error {
ctx := context.Background()
apiClient := lc.cli.Client()

c, err := apiClient.ContainerGet(ctx, containerName)
if err != nil {
return err
}

if !validDrivers[c.HostConfig.LogConfig.Type] {
return fmt.Errorf("\"logs\" command is supported only for \"json-file\" and \"journald\" logging drivers (got; %s)", c.HostConfig.LogConfig.Type)
}

opts := types.ContainerLogsOptions{
ShowStdout: true,
ShowStderr: true,
Expand Down

0 comments on commit 24541df

Please sign in to comment.