Skip to content

Commit

Permalink
moar logging
Browse files Browse the repository at this point in the history
  • Loading branch information
smonero committed Apr 15, 2024
1 parent 9352a3f commit 8e954a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/neptune/gateway/config/root_config_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ func (s *ModifiedRootsStrategy) FindMatches(ctx context.Context, config valid.Re
Sha: repo.RepoCommit.Sha,
})
if err != nil {
return nil, errors.Wrapf(err, "finding modified files: %s", modifiedFiles)
debugStr := fmt.Sprintf("sha: %s, prNum: %d, dir %s", repo.RepoCommit.Sha, repo.RepoCommit.OptionalPRNum, repo.Dir)
return nil, errors.Wrapf(err, "finding modified files: %s, debug str: %s", modifiedFiles, debugStr)
}

matchingRoots, err := s.RootFinder.FindRoots(ctx, config, repo.Dir, modifiedFiles)
Expand Down Expand Up @@ -131,6 +132,7 @@ func (b *Builder) build(ctx context.Context, commit *RepoCommit, installationTok
RepoCommit: commit,
Dir: repoDir,
}
b.Logger.Info(fmt.Sprintf("localRepo is: full repo name: %s, commit sha: %s, commit branch: %s, commit repo name: %s, repodir: %s", commit.Repo.FullName, commit.Sha, commit.Branch, commit.Repo.Name, repoDir))

// Run pre-workflow hooks
err = b.HooksRunner.Run(ctx, localRepo.Repo, localRepo.Dir)
Expand Down

0 comments on commit 8e954a4

Please sign in to comment.