Skip to content

Commit 7d02b69

Browse files
committed
Adding more logging
1 parent 41f974c commit 7d02b69

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/AppBundle/Issues/GitHub/GitHubStatusApi.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,18 @@ public function setIssueStatus($issueNumber, $newStatus, Repository $repository)
4646
}
4747

4848
$newLabel = self::$statusToLabel[$newStatus];
49+
$this->logger->info(sprintf(
50+
'Fetching issue labels for issue %s, repository %s',
51+
$issueNumber,
52+
$repository->getFullName()
53+
));
4954
$currentLabels = $this->labelsApi->getIssueLabels($issueNumber, $repository);
55+
56+
$this->logger->info(sprintf(
57+
'Fetched the following labels: %s',
58+
implode(', ', $currentLabels)
59+
))
60+
5061
$addLabel = true;
5162

5263
foreach ($currentLabels as $label) {

0 commit comments

Comments
 (0)