devinspector 2.0.3__tar.gz → 2.0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {devinspector-2.0.3 → devinspector-2.0.5}/PKG-INFO +1 -1
- {devinspector-2.0.3 → devinspector-2.0.5}/devinspector/core.py +6 -0
- {devinspector-2.0.3 → devinspector-2.0.5}/devinspector.egg-info/PKG-INFO +1 -1
- {devinspector-2.0.3 → devinspector-2.0.5}/pyproject.toml +1 -1
- {devinspector-2.0.3 → devinspector-2.0.5}/README.md +0 -0
- {devinspector-2.0.3 → devinspector-2.0.5}/devinspector/__init__.py +0 -0
- {devinspector-2.0.3 → devinspector-2.0.5}/devinspector/fastapi.py +0 -0
- {devinspector-2.0.3 → devinspector-2.0.5}/devinspector/flask.py +0 -0
- {devinspector-2.0.3 → devinspector-2.0.5}/devinspector.egg-info/SOURCES.txt +0 -0
- {devinspector-2.0.3 → devinspector-2.0.5}/devinspector.egg-info/dependency_links.txt +0 -0
- {devinspector-2.0.3 → devinspector-2.0.5}/devinspector.egg-info/requires.txt +0 -0
- {devinspector-2.0.3 → devinspector-2.0.5}/devinspector.egg-info/top_level.txt +0 -0
- {devinspector-2.0.3 → devinspector-2.0.5}/setup.cfg +0 -0
|
@@ -52,6 +52,7 @@ class AuditCore:
|
|
|
52
52
|
) -> None:
|
|
53
53
|
payload = {
|
|
54
54
|
"type": "request_metric",
|
|
55
|
+
"message": f"{method} {url} - {status_code}",
|
|
55
56
|
"method": method,
|
|
56
57
|
"url": url,
|
|
57
58
|
"statusCode": status_code,
|
|
@@ -200,6 +201,11 @@ class AuditCore:
|
|
|
200
201
|
try:
|
|
201
202
|
with urllib.request.urlopen(req, timeout=5):
|
|
202
203
|
pass
|
|
204
|
+
except urllib.error.HTTPError as e:
|
|
205
|
+
# Mostra o erro detalhado que o painel devolveu
|
|
206
|
+
error_body = e.read().decode('utf-8', errors='ignore')
|
|
207
|
+
print(f"[DevInspector] HTTP {e.code} do painel: {e.reason} - Resposta: {error_body}")
|
|
208
|
+
print(f"[DevInspector] Payload enviado que gerou o erro: {payload}")
|
|
203
209
|
except Exception as err:
|
|
204
210
|
print(f"[DevInspector] Falha ao enviar requisição para o painel: {err}")
|
|
205
211
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|