mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
replace unkeyed fiels with keyed fields when instantiating log struct
This commit is contained in:
@@ -48,7 +48,7 @@ func (l *DockerLogs) Stream() chan models.Log {
|
||||
for scanner.Scan() {
|
||||
parts := strings.Split(scanner.Text(), " ")
|
||||
ts := l.parseTime(parts[0])
|
||||
logCh <- models.Log{ts, strings.Join(parts[1:], " ")}
|
||||
logCh <- models.Log{Timestamp: ts, Message: strings.Join(parts[1:], " ")}
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user