Remove Debug prints from GitLabStatus.pm
These make the hydra-queue-runner logs very noisy even when not using the GitlabStatus plugin. Also, they shouldn't be necessary except when developing the plugin itself and should have been removed before release.
This commit is contained in:
parent
87317812a8
commit
2742fde8c2
|
@ -37,7 +37,6 @@ sub common {
|
||||||
my $ua = LWP::UserAgent->new();
|
my $ua = LWP::UserAgent->new();
|
||||||
|
|
||||||
foreach my $conf (@config) {
|
foreach my $conf (@config) {
|
||||||
print STDERR "GithubStatus_Debug job name $jobName\n";
|
|
||||||
next unless $jobName =~ /^$conf->{jobs}$/;
|
next unless $jobName =~ /^$conf->{jobs}$/;
|
||||||
# Don't send out "pending" status updates if the build is already finished
|
# Don't send out "pending" status updates if the build is already finished
|
||||||
next if !$finished && $b->finished == 1;
|
next if !$finished && $b->finished == 1;
|
||||||
|
@ -70,7 +69,6 @@ sub common {
|
||||||
my $owner = $1;
|
my $owner = $1;
|
||||||
my $repo = $2;
|
my $repo = $2;
|
||||||
my $url = "https://api.github.com/repos/$owner/$repo/statuses/$rev";
|
my $url = "https://api.github.com/repos/$owner/$repo/statuses/$rev";
|
||||||
print STDERR "GithubStatus_Debug POSTing to '", $url, "'\n";
|
|
||||||
my $req = HTTP::Request->new('POST', $url);
|
my $req = HTTP::Request->new('POST', $url);
|
||||||
$req->header('Content-Type' => 'application/json');
|
$req->header('Content-Type' => 'application/json');
|
||||||
$req->header('Accept' => 'application/vnd.github.v3+json');
|
$req->header('Accept' => 'application/vnd.github.v3+json');
|
||||||
|
|
Loading…
Reference in a new issue