Skip to content

Commit

Permalink
added some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivam-nagar23 committed Oct 25, 2024
1 parent 28fd0cf commit ad3b5f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-sensor/pkg/git/Watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func (impl GitWatcherImpl) pollGitMaterialAndNotify(material *sql.GitMaterial) (
fetchCount := impl.configuration.GitHistoryCount
commits, errMsg, err := impl.repositoryManager.ChangesSinceByRepository(gitCtx, repo, material.Value, lastSeenHash, "", fetchCount, checkoutLocation, false)
if err != nil {
impl.logger.Errorw("error in fetching ChangesSinceByRepository", "err", err, "errMsg", errMsg, "Value", material.Value)
material.Errored = true
material.ErrorMsg = util2.BuildDisplayErrorMessage(errMsg, err)

Expand Down

0 comments on commit ad3b5f8

Please # to comment.