mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-24 08:37:55 +00:00
Fixed bug where 'podman log <container>' would truncate some lines.
Signed-off-by: Will Haines <william.haines@colorado.edu>
This commit is contained in:
parent
b2200dbe05
commit
86ffa552d2
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ func (r *Runtime) Log(containers []*Container, options *logs.LogOptions, logChan
|
|||
return nil
|
||||
}
|
||||
|
||||
// ReadLog reads a containers log based on the input options and returns loglines over a channel
|
||||
// ReadLog reads a containers log based on the input options and returns loglines over a channel.
|
||||
func (c *Container) ReadLog(options *logs.LogOptions, logChannel chan *logs.LogLine) error {
|
||||
// TODO Skip sending logs until journald logs can be read
|
||||
// TODO make this not a magic string
|
||||
|
|
@ -61,7 +61,7 @@ func (c *Container) readFromLogFile(options *logs.LogOptions, logChannel chan *l
|
|||
partial += nll.Msg
|
||||
continue
|
||||
} else if !nll.Partial() && len(partial) > 1 {
|
||||
nll.Msg = partial
|
||||
nll.Msg = partial + nll.Msg
|
||||
partial = ""
|
||||
}
|
||||
nll.CID = c.ID()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue