Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 08700c6

Browse files
committed
feat: [torrust#39] new script to filter common errors in logs
1 parent 7458b0e commit 08700c6

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,23 @@ Sample commands:
3434
2. Execute the deployment script: `./bin/deploy-torrust-demo.com.sh`.
3535
3. Execute the smoke tests:
3636

37-
```console
38-
cargo run --bin udp_tracker_client announce 144.126.245.19:6969 9c38422213e30bff212b30c360d26f9a02136422
37+
```console
38+
cargo run --bin udp_tracker_client announce 144.126.245.19:6969 9c38422213e30bff212b30c360d26f9a02136422
3939

40-
cargo run --bin http_tracker_client announce 144.126.245.19:6969 9c38422213e30bff212b30c360d26f9a02136422
40+
cargo run --bin http_tracker_client announce 144.126.245.19:6969 9c38422213e30bff212b30c360d26f9a02136422
4141

42-
TORRUST_CHECKER_CONFIG='{
43-
"udp_trackers": ["144.126.245.19:6969"],
44-
"http_trackers": ["https://tracker.torrust-demo.com"],
45-
"health_checks": ["https://tracker.torrust-demo.com/api/health_check"]
46-
}' cargo run --bin tracker_checker
47-
```
42+
TORRUST_CHECKER_CONFIG='{
43+
"udp_trackers": ["144.126.245.19:6969"],
44+
"http_trackers": ["https://tracker.torrust-demo.com"],
45+
"health_checks": ["https://tracker.torrust-demo.com/api/health_check"]
46+
}' cargo run --bin tracker_checker
47+
```
48+
49+
4. Check the logs of the tracker container to see if everything is working:
50+
51+
```console
52+
./share/bin/tracker-filtered-logs.sh
53+
```
4854

4955
## TODO
5056

share/bin/tracker-filtered-logs.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
# It filter out known error log messages from the tracker logs
4+
docker compose logs -f tracker | grep -v -F -e "Invalid announce event" -e 'Connection cookie error' -e INFO -e "Invalid action" -e "Udp::run_udp_server::loop aborting request" -e "Port can't be 0" -e "Protocol identifier missing" -e "Couldn't parse action"

0 commit comments

Comments
 (0)