Skip to content

Commit

Permalink
More message filtering for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS-ovm committed Jun 21, 2024
1 parent 9be307d commit a8b139f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tea_terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (m *cmdModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
lastMsgType := fmt.Sprintf("%T", msg)
if lastMsgType != "spinner.TickMsg" {
log.Debugf("cmdModel: Update %v received %#v", lastMsgType, msg)
if cmdSpan != nil && !slices.Contains([]string{"tea.KeyMsg", "tea.Quit"}, lastMsgType) {
if cmdSpan != nil && !slices.Contains([]string{"tea.KeyMsg", "tea.Quit", "cmd.delayQuitMsg"}, lastMsgType) {
cmdSpan.SetAttributes(attribute.String("ovm.cli.lastMsgType", lastMsgType))
}
}
Expand Down

0 comments on commit a8b139f

Please sign in to comment.