Skip to content

Commit

Permalink
Conditionally log ref
Browse files Browse the repository at this point in the history
  • Loading branch information
felixjung committed Oct 28, 2024
1 parent 16ab252 commit 4d2fef3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index/search_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
"net/url"
"path/filepath"
"strings"

"github.com/davecgh/go-spew/spew"
)

type ContextKey string
Expand Down Expand Up @@ -43,6 +45,9 @@ func (index *SpecIndex) SearchIndexForReferenceByReferenceWithContext(ctx contex
}

ref := searchRef.FullDefinition
if strings.Contains(ref, "felixjung") {
spew.Dump(ref)
}

Check warning on line 50 in index/search_index.go

View check run for this annotation

Codecov / codecov/patch

index/search_index.go#L49-L50

Added lines #L49 - L50 were not covered by tests
refAlt := ref
absPath := index.specAbsolutePath
if searchRef.RemoteLocation != "" {
Expand Down

0 comments on commit 4d2fef3

Please sign in to comment.