Merge pull request #12226 from ahmetalpbalkan/logdrivers/refactoring

daemon: Logging drivers architectural refactoring
This commit is contained in:
David Calavera
2015-05-13 11:00:50 -07:00
12 changed files with 225 additions and 118 deletions
+2 -2
View File
@@ -37,8 +37,8 @@ func (cli *DockerCli) CmdLogs(args ...string) error {
return err
}
if c.HostConfig.LogConfig.Type != "json-file" {
return fmt.Errorf("\"logs\" command is supported only for \"json-file\" logging driver")
if logType := c.HostConfig.LogConfig.Type; logType != "json-file" {
return fmt.Errorf("\"logs\" command is supported only for \"json-file\" logging driver (got: %s)", logType)
}
v := url.Values{}