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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devinspector
3
- Version: 2.0.3
3
+ Version: 2.0.5
4
4
  Summary: SDK Python de monitoramento e auditoria em tempo real | DevInspector
5
5
  Author-email: DevInspector <suporte@devinspector.com.br>
6
6
  License: MIT
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devinspector
3
- Version: 2.0.3
3
+ Version: 2.0.5
4
4
  Summary: SDK Python de monitoramento e auditoria em tempo real | DevInspector
5
5
  Author-email: DevInspector <suporte@devinspector.com.br>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "devinspector"
7
- version = "2.0.3"
7
+ version = "2.0.5"
8
8
  description = "SDK Python de monitoramento e auditoria em tempo real | DevInspector"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
File without changes
File without changes