|
@@ -7,13 +7,13 @@ import (
|
|
"io"
|
|
"io"
|
|
"os"
|
|
"os"
|
|
"strconv"
|
|
"strconv"
|
|
- "time"
|
|
|
|
|
|
|
|
"github.com/docker/docker/pkg/log"
|
|
"github.com/docker/docker/pkg/log"
|
|
"github.com/docker/docker/pkg/tailfile"
|
|
"github.com/docker/docker/pkg/tailfile"
|
|
|
|
|
|
"github.com/docker/docker/engine"
|
|
"github.com/docker/docker/engine"
|
|
"github.com/docker/docker/pkg/jsonlog"
|
|
"github.com/docker/docker/pkg/jsonlog"
|
|
|
|
+ "github.com/docker/docker/utils"
|
|
)
|
|
)
|
|
|
|
|
|
func (daemon *Daemon) ContainerLogs(job *engine.Job) engine.Status {
|
|
func (daemon *Daemon) ContainerLogs(job *engine.Job) engine.Status {
|
|
@@ -35,7 +35,7 @@ func (daemon *Daemon) ContainerLogs(job *engine.Job) engine.Status {
|
|
return job.Errorf("You must choose at least one stream")
|
|
return job.Errorf("You must choose at least one stream")
|
|
}
|
|
}
|
|
if times {
|
|
if times {
|
|
- format = time.RFC3339Nano
|
|
|
|
|
|
+ format = utils.RFC3339NanoFixed
|
|
}
|
|
}
|
|
if tail == "" {
|
|
if tail == "" {
|
|
tail = "all"
|
|
tail = "all"
|