Skip to content

UDP Tracker: refactor logs for request and responses #698

@josecelano

Description

@josecelano

Parent issue: #687
Relates to: torrust/torrust-index#468

Change the current format for log records from:

2024-02-19T09:42:42.361343286+00:00 [UDP][INFO] "CONNECT TxID 1937009002"
2024-02-19T09:42:42.361874483+00:00 [UDP][INFO] "ANNOUNCE TxID 437961926 IH 22c004adcd330170a9be55d4296231f996629ed0"

TO:

2024-02-19T09:42:42.361343286+00:00 [UDP][INFO] request; action=CONNECT
2024-02-19T09:42:42.361874483+00:00 [UDP][INFO] request; action=ANNOUNCE transaction_id=437961926 info_hash=22c004adcd330170a9be55d4296231f996629ed0

To use the same format for all logs. We can also use https://docs.rs/tracing/latest/tracing/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions