mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-30 17:47:28 +01:00
Tries to add 1 mircosecond to skip first log event (#1838)
This commit is contained in:
@@ -173,6 +173,12 @@ func (d *dockerClient) ContainerStats(ctx context.Context, id string, stats chan
|
||||
func (d *dockerClient) ContainerLogs(ctx context.Context, id string, tailSize int, since string) (io.ReadCloser, error) {
|
||||
log.WithField("id", id).WithField("since", since).Debug("streaming logs for container")
|
||||
|
||||
if since != "" {
|
||||
if sinceTime, err := time.Parse(time.RFC3339Nano, since); err == nil {
|
||||
since = sinceTime.Add(time.Microsecond).Format(time.RFC3339Nano)
|
||||
}
|
||||
}
|
||||
|
||||
options := types.ContainerLogsOptions{
|
||||
ShowStdout: true,
|
||||
ShowStderr: true,
|
||||
|
||||
Reference in New Issue
Block a user