Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logs to HTTP tracker #702

Conversation

josecelano
Copy link
Member

Add logs to HTTP tracker. Sample logs:

2024-02-19T13:00:12.631712627+00:00 [HTTP TRACKER][INFO] request; method=GET uri=/health_check request_id=24a3f4a2-99e5-4db1-890f-f7196a294c2a
2024-02-19T13:00:12.631765246+00:00 [HTTP TRACKER][INFO] response; latency=0 status=200 OK request_id=24a3f4a2-99e5-4db1-890f-f7196a294c2a

@josecelano josecelano self-assigned this Feb 19, 2024
@josecelano josecelano added this to the v3.0.0 milestone Feb 19, 2024
@josecelano josecelano linked an issue Feb 19, 2024 that may be closed by this pull request
@josecelano josecelano added Enhancement / Feature Request Something New - Developer - Torrust Improvement Experience - Admin - Enjoyable to Install and Setup our Software labels Feb 19, 2024
Copy link

codecov bot commented Feb 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d3344da) 73.24% compared to head (30ae6df) 73.31%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #702      +/-   ##
===========================================
+ Coverage    73.24%   73.31%   +0.07%     
===========================================
  Files          143      143              
  Lines         9216     9241      +25     
===========================================
+ Hits          6750     6775      +25     
  Misses        2466     2466              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sample logs:

```
2024-02-19T13:29:02.301023716+00:00 [HTTP TRACKER][INFO] request; server_socket_addr=0.0.0.0:7070 method=GET uri=/scrape?info_hash=%44%3C%76%02%B4%FD%E8%3D%11%54%D6%D9%DA%48%80%84%18%B1%81%B6 request_id=2c4aa57d-dd12-4cb8-95d1-e8193627c106
2024-02-19T13:29:02.301095545+00:00 [HTTP TRACKER][INFO] response; server_socket_addr=0.0.0.0:7070 latency=0 status=200 OK request_id=2c4aa57d-dd12-4cb8-95d1-e8193627c106
```
@josecelano
Copy link
Member Author

ACK 30ae6df

@josecelano josecelano merged commit af2e0f9 into torrust:develop Feb 19, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Admin - Enjoyable to Install and Setup our Software - Developer - Torrust Improvement Experience Enhancement / Feature Request Something New
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTTP Tracker: log request and responses
1 participant