Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
loks0n committed Dec 13, 2024
1 parent be25331 commit 9fc2f6c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:

- name: Run Linter
run: |
docker run --rm -v $PWD:/app composer sh -c \
docker run --rm -v $PWD:/app composer:2.6 sh -c \
"composer install --profile --ignore-platform-reqs && composer lint"
6 changes: 5 additions & 1 deletion src/Logger/Adapter/AppSignal.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,17 @@ public function push(Log $log): int

if ($curlError !== CURLE_OK) {
error_log("AppSignal push failed with curl error ({$curlError}): {$response}");

return 500;
}

if ($httpCode >= 400 || $httpCode === 0) {
error_log("AppSignal push failed with status code {$httpCode}: {$curlError} ({$response})");

return $httpCode ?: 500;
}

return $httpCode;
}

public function getSupportedTypes(): array
Expand Down
6 changes: 5 additions & 1 deletion src/Logger/Adapter/LogOwl.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,17 @@ public function push(Log $log): int

if ($curlError !== CURLE_OK) {
error_log("LogOwl push failed with curl error ({$curlError}): {$response}");

return 500;
}

if ($httpCode >= 400 || $httpCode === 0) {
error_log("LogOwl push failed with status code {$httpCode}: {$curlError} ({$response})");

return $httpCode ?: 500;
}

return $httpCode;
}

public function getSupportedTypes(): array
Expand Down
6 changes: 5 additions & 1 deletion src/Logger/Adapter/Raygun.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,17 @@ public function push(Log $log): int

if ($curlError !== CURLE_OK) {
error_log("Raygun push failed with curl error ({$curlError}): {$response}");

return 500;
}

if ($httpCode >= 400 || $httpCode === 0) {
error_log("Raygun push failed with status code {$httpCode}: {$curlError} ({$response})");

return $httpCode ?: 500;
}

return $httpCode;
}

public function getSupportedTypes(): array
Expand Down
6 changes: 5 additions & 1 deletion src/Logger/Adapter/Sentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,17 @@ public function push(Log $log): int

if ($curlError !== CURLE_OK) {
error_log("Sentry push failed with curl error ({$curlError}): {$response}");

return 500;
}

if ($httpCode >= 400 || $httpCode === 0) {
error_log("Sentry push failed with status code {$httpCode}: {$curlError} ({$response})");

return $httpCode ?: 500;
}

return $httpCode;
}

public function getSupportedTypes(): array
Expand Down

0 comments on commit 9fc2f6c

Please sign in to comment.