webtorrent / bittorrent-tracker

🌊 Simple, robust, BitTorrent tracker (client & server) implementation
https://webtorrent.io
MIT License
1.72k stars 314 forks source link

Add event timestamp #516

Closed krazak closed 2 months ago

krazak commented 3 months ago

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update [ ] Bug fix [x ] New feature [ ] Other, please explain:

What changes did you make? (Give an overview) Added timestamps to the event logs

Which issue (if any) does this pull request address? It helps to correlate events that occur with your bittorrent client's logs.

Is there anything you'd like reviewers to focus on? No.

New tracker log:

2024-04-01T21:02:04.570Z bittorrent-tracker:server new server {"http":true,"stats":true,"trustProxy":false,"udp":true,"ws":true}
2024-04-01T21:02:04.670Z bittorrent-tracker:server listen (port: 8000 hostname: { http: undefined, udp4: undefined, udp6: undefined })
2024-04-01T21:02:04.889Z bittorrent-tracker:server listening
2024-04-01T21:02:04.890Z HTTP tracker: http://localhost:8000/announce
2024-04-01T21:02:04.904Z UDP tracker: udp://0.0.0.0:8000
2024-04-01T21:02:04.904Z UDP6 tracker: udp://localhost:8000
2024-04-01T21:02:04.904Z WebSocket tracker: ws://localhost:8000/
2024-04-01T21:02:04.904Z Tracker stats: http://localhost:8000/stats
2024-04-01T21:02:12.162Z start: 172.29.0.7:6881
2024-04-01T21:04:39.877Z start: 172.29.0.13:51414
welcome[bot] commented 3 months ago

🙌 Thanks for opening this pull request! You're awesome.

himabindugit commented 2 months ago

Any update on reviewing the PR?

welcome[bot] commented 2 months ago

🎉 Congrats on getting your first pull request landed!

webtorrent-bot commented 1 month ago

:tada: This PR is included in version 11.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: