Skip to content

Commit

Permalink
delete log for incorrect range
Browse files Browse the repository at this point in the history
  • Loading branch information
evanliu048 committed Jan 31, 2025
1 parent 8bdd4ad commit d9453ea
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,6 @@ class CodeWhispererUserModificationTracker(private val project: Project) : Dispo
val end = acceptedSuggestion.range.endOffset
if (document != null) {
if (start < 0 || end < start || end > document.textLength) {
LOG.warn {
"Invalid range for suggestion ${acceptedSuggestion.requestId}: " +
"start=$start, end=$end, docLength=${document.textLength}"
}
sendModificationTelemetry(acceptedSuggestion, null)
sendUserModificationTelemetryToServiceAPI(acceptedSuggestion)
return
Expand Down

0 comments on commit d9453ea

Please sign in to comment.