Skip to content

Commit 840f9b2

Browse files
authored
Clear ApplicationLogEvent and SkaffoldLogEvent buffers on new dev iteration (#5993)
* clear user application and skaffold logs on new dev iteration * use empty slice literals instead of nils
1 parent d45f297 commit 840f9b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/skaffold/event/v2/event.go

+4
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,12 @@ func AutoTriggerDiff(phase constants.Phase, val bool) (bool, error) {
305305
}
306306

307307
func TaskInProgress(task constants.Phase, description string) {
308+
// Special casing to increment iteration and clear application and skaffold logs
308309
if task == constants.DevLoop {
309310
handler.iteration++
311+
312+
handler.applicationLogs = []proto.Event{}
313+
handler.skaffoldLogs = []proto.Event{}
310314
}
311315

312316
handler.handleTaskEvent(&proto.TaskEvent{

0 commit comments

Comments
 (0)