Skip to content

Commit

Permalink
add debug log for comment out of diff range
Browse files Browse the repository at this point in the history
Signed-off-by: Maxim Sukharev <maxim@sourced.tech>
  • Loading branch information
smacker committed Aug 17, 2018
1 parent 3018275 commit 8230b40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions provider/github/poster.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

"github.com/google/go-github/github"
"gopkg.in/src-d/go-errors.v1"
log "gopkg.in/src-d/go-log.v1"
)

var (
Expand Down Expand Up @@ -172,6 +173,9 @@ func (p *Poster) createReviewRequest(
} else {
line, err := dl.ConvertLine(c.File, int(c.Line))
if ErrLineOutOfDiff.Is(err) {
log.Debugf(
"comment is out the diff range. analyzer: %s, file %s, line %d",
aComments.Config.Name, c.File, c.Line)
continue
}

Expand Down

0 comments on commit 8230b40

Please sign in to comment.