internal 1.0.123__py3-none-any.whl → 1.0.124__py3-none-any.whl

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.

Potentially problematic release.


This version of internal might be problematic. Click here for more details.

@@ -14,15 +14,18 @@ class LogRequestMiddleware(BaseHTTPMiddleware):
14
14
  async def dispatch(self, request: Request, call_next):
15
15
  # 记录请求的URL和参数
16
16
  url = request.url.path
17
+ method = request.method
17
18
  headers = request.headers
18
19
  params = dict(request.query_params)
19
20
  body = await request.body()
20
- self.logger.info(f"URL: {url} - Headers: {headers} - Params: {params} - Body: {body}")
21
+ self.logger.info(
22
+ f"Method: {method}, URL: {url} - Headers: {headers} - Params: {params} - Body: {body} start processing...")
21
23
 
22
24
  # 记录请求处理时间
23
25
  start_time = time.time()
24
26
  response = await call_next(request)
25
27
  process_time = time.time() - start_time
26
28
 
27
- self.logger.info(f"Completed in {process_time:.4f} seconds")
29
+ self.logger.info(
30
+ f"Method: {method}, URL: {url} - Headers: {headers} - Params: {params} - Body: {body}, Completed in {process_time:.4f} seconds")
28
31
  return response
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: internal
3
- Version: 1.0.123
3
+ Version: 1.0.124
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -28,12 +28,12 @@ internal/http/responses.py,sha256=zvU0iRQ9-qxeEZfKmuvTi8lv9DFcaNAsHlQKOTCpVzw,29
28
28
  internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  internal/interface/base_interface.py,sha256=3YaVjIgLi_pZpLk5SEIk8WVkuICM8qPavT8rB0MdB5U,1536
30
30
  internal/middleware/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
- internal/middleware/log_request.py,sha256=s4epUnpU8W-WspfZF4Gn0ovX7pJe2hlb9H0NeddGLyY,909
31
+ internal/middleware/log_request.py,sha256=K2ZbjBsDYUhFt_kZ5tD48vKkKEunfNQ88plcxbD_TI8,1090
32
32
  internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  internal/model/base_model.py,sha256=NWjysNOp2MfXvAHGFqaQA_l8ZfTFvJbXQPUPuOXN_2g,5361
34
34
  internal/model/operate.py,sha256=QSM6yXYXpJMwrqkUGEWZLrEBaUgqHwVHY_Fi4S42hKc,3190
35
35
  internal/utils.py,sha256=i6YZdiXsiWnOjRdlJ6afNCGpyMe3Uo9mhm3xlQBy3Ls,2824
36
36
  internal/validator_utils.py,sha256=5ZLcNIgw1hvkYOj1f6gS9AYxe7Y3ufW9FyDxUS7FsMQ,1226
37
- internal-1.0.123.dist-info/METADATA,sha256=JY4AZxEBnkkmT-0o_T6JO4s-vLkla-yZ2dTKuDBAngQ,809
38
- internal-1.0.123.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
39
- internal-1.0.123.dist-info/RECORD,,
37
+ internal-1.0.124.dist-info/METADATA,sha256=4pjHDM51Vf3uqYiNMTV4uKvmRR34LOzHzNpy-hkKD7U,809
38
+ internal-1.0.124.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
39
+ internal-1.0.124.dist-info/RECORD,,