Limit number of log entries stored
This commit is contained in:
parent
d8c0b7d0ea
commit
bcc4e145a2
@ -28,6 +28,9 @@ func init() {
|
||||
for {
|
||||
aLog := <-logInput
|
||||
LogEntries = append(LogEntries, aLog)
|
||||
for len(LogEntries) > 100 {
|
||||
LogEntries = LogEntries[1:]
|
||||
}
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user