mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +08:00
Remove /process/:id/report/:at endpoint, extend /process/:id/report endpoint
This commit is contained in:
@@ -170,7 +170,7 @@ func New(config Config) Parser {
|
||||
p.collector = session.NewNullCollector()
|
||||
}
|
||||
|
||||
p.logStart = time.Now()
|
||||
p.logStart = time.Time{}
|
||||
p.lock.log.Unlock()
|
||||
|
||||
p.ResetStats()
|
||||
@@ -721,7 +721,7 @@ func (p *parser) ResetLog() {
|
||||
|
||||
p.lock.log.Lock()
|
||||
p.log = ring.New(p.logLines)
|
||||
p.logStart = time.Now()
|
||||
p.logStart = time.Time{}
|
||||
p.lock.log.Unlock()
|
||||
}
|
||||
|
||||
@@ -791,6 +791,8 @@ func (p *parser) storeReportHistory(state string) {
|
||||
|
||||
report := p.Report()
|
||||
|
||||
p.ResetLog()
|
||||
|
||||
if len(report.Prelude) == 0 {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user