chore: remove debug log, finally found it

This commit is contained in:
peaklabs-dev
2025-01-06 21:14:06 +01:00
parent deec885fd9
commit 09dfbde676
2 changed files with 0 additions and 52 deletions

View File

@@ -27,17 +27,9 @@ class GithubAppPermissionJob implements ShouldBeEncrypted, ShouldQueue
public function handle()
{
Log::debug('Starting GithubAppPermissionJob', [
'app_id' => $this->github_app->app_id,
'installation_id' => $this->github_app->installation_id,
'api_url' => $this->github_app->api_url,
]);
try {
Log::debug('Generating GitHub JWT token');
$github_access_token = generateGithubJwt($this->github_app);
Log::debug('Fetching app permissions from GitHub API');
$response = Http::withHeaders([
'Authorization' => "Bearer $github_access_token",
'Accept' => 'application/vnd.github+json',
@@ -55,31 +47,14 @@ class GithubAppPermissionJob implements ShouldBeEncrypted, ShouldQueue
$response = $response->json();
$permissions = data_get($response, 'permissions');
Log::debug('Retrieved GitHub permissions', [
'app_id' => $this->github_app->app_id,
'permissions' => $permissions,
]);
$this->github_app->contents = data_get($permissions, 'contents');
$this->github_app->metadata = data_get($permissions, 'metadata');
$this->github_app->pull_requests = data_get($permissions, 'pull_requests');
$this->github_app->administration = data_get($permissions, 'administration');
Log::debug('Saving updated permissions to database', [
'app_id' => $this->github_app->app_id,
'contents' => $this->github_app->contents,
'metadata' => $this->github_app->metadata,
'pull_requests' => $this->github_app->pull_requests,
'administration' => $this->github_app->administration,
]);
$this->github_app->save();
$this->github_app->makeVisible('client_secret')->makeVisible('webhook_secret');
Log::debug('Successfully completed GithubAppPermissionJob', [
'app_id' => $this->github_app->app_id,
]);
} catch (\Throwable $e) {
Log::error('GithubAppPermissionJob failed', [
'app_id' => $this->github_app->app_id,