Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Aug 16, 2024
1 parent a3ea052 commit c3ee571
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ jobs:
API_REPORTER_METRICS_URL: ${{ secrets.API_REPORTER_METRICS_URL }}
API_REPORTER_METRICS_BASIC_AUTH_USERNAME: ${{ secrets.API_REPORTER_METRICS_BASIC_AUTH_USERNAME }}
API_REPORTER_METRICS_BASIC_AUTH_PASSWORD: ${{ secrets.API_REPORTER_METRICS_BASIC_AUTH_PASSWORD }}
API_REPORTER_DEBUG: true

# ADD YOUR CUSTOM ENV VARIABLES HERE OR DEFINE THEM IN A FILE
# .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY
Expand Down
4 changes: 2 additions & 2 deletions megalinter/reporters/ApiReporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def send_to_api(self):
else:
logging.warning(
f"[Api Reporter] Error posting data to {self.api_url} ({response.status_code})\n"
f"[Api Reporter] Api request: {json.dumps(obj=self.payloadFormatted, indent=True)}\n"
f"[Api Reporter] API request: {json.dumps(obj=self.payloadFormatted, indent=True)}\n"
f"[Api Reporter] API response: {response.text}"
)
except ConnectionError as e:
Expand Down Expand Up @@ -323,7 +323,7 @@ def send_to_metrics_api(self):
else:
logging.warning(
f"[Api Reporter Metrics] Error posting data to {self.api_url} ({response.status_code})\n"
f"[Api Reporter Metrics] Api request: {json.dumps(obj=self.payloadFormatted, indent=True)}\n"
f"[Api Reporter Metrics] API request: {json.dumps(obj=self.payloadFormatted, indent=True)}\n"
f"[Api Reporter Metrics] API response: {response.text}"
)
except ConnectionError as e:
Expand Down

0 comments on commit c3ee571

Please sign in to comment.