mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Stop sending before logs when after is specified (#2585)
This fixes duplicate logs appearing in completed jos!
This commit is contained in:
@@ -72,7 +72,10 @@ func (api *API) provisionerJobLogs(rw http.ResponseWriter, r *http.Request, job
|
||||
}
|
||||
before = time.UnixMilli(beforeMS)
|
||||
} else {
|
||||
before = database.Now()
|
||||
// If we're following, we don't want logs before a timestamp!
|
||||
if !follow {
|
||||
before = database.Now()
|
||||
}
|
||||
}
|
||||
|
||||
if !follow {
|
||||
|
||||
Reference in New Issue
Block a user