-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Labels
- Developer -Torrust Improvement ExperienceTorrust Improvement Experience- System Admin -Enjoyable to Install and Setup our SoftwareEnjoyable to Install and Setup our SoftwareEnhancement / Feature RequestSomething NewSomething New
Milestone
Description
Relates to: torrust/torrust-tracker#687
Currently, the Index logs only include these lines
$ cargo run
Compiling torrust-index v3.0.0-alpha.3-develop (/home/josecelano/Documents/git/committer/me/github/torrust/torrust-index)
Finished dev [unoptimized + debuginfo] target(s) in 7.16s
Running `target/debug/torrust-index`
Loading default configuration file: `./share/default/config/index.development.sqlite3.toml` ...
2024-02-12T12:44:44.175872075+00:00 [torrust_index::bootstrap::logging][INFO] logging initialized.
2024-02-12T12:44:44.216332590+00:00 [torrust_index::console::cronjobs::tracker_statistics_importer][INFO] Tracker statistics importer launcher started
2024-02-12T12:44:44.216362250+00:00 [torrust_index::web::api::server][INFO] Starting API server with net config: 0.0.0.0:3001 ...
2024-02-12T12:44:44.216445749+00:00 [torrust_index::console::cronjobs::tracker_statistics_importer][INFO] Tracker statistics importer cronjob starting ...
2024-02-12T12:44:44.216471329+00:00 [torrust_index::web::api::server][INFO] API server listening on http://0.0.0.0:3001
2024-02-12T12:44:44.216643798+00:00 [torrust_index::console::cronjobs::tracker_statistics_importer][INFO] Tracker statistics importer API server listening on http://127.0.0.1:3002
^C2024-02-12T12:46:32.787846488+00:00 [torrust_index::web::api::server][INFO] Stopping API server on http://0.0.0.0:3001 ...
2024-02-12T12:46:32.788022917+00:00 [torrust_index::web::api::server][INFO] API server stopped
...
index | 2024-02-07T17:18:32.075025043+00:00 [torrust_index::tracker::statistics_importer][INFO] Updating torrent 646 ...
index | 2024-02-07T17:18:32.319068049+00:00 [torrust_index::tracker::statistics_importer][INFO] Updating torrent 2286 ...
index | 2024-02-07T17:18:32.743514144+00:00 [torrust_index::tracker::statistics_importer][INFO] Updating torrent 2003 ...
index | 2024-02-07T17:18:33.296387885+00:00 [torrust_index::tracker::statistics_importer][INFO] Updating torrent 1266 ...
index | 2024-02-07T17:18:34.119532766+00:00 [torrust_index::tracker::statistics_importer][INFO] Updating torrent 2626 ...
index | 2024-02-07T17:18:35.243764475+00:00 [torrust_index::tracker::statistics_importer][INFO] Updating torrent 845 ...
index | 2024-02-07T17:18:35.611726442+00:00 [torrust_index::tracker::statistics_importer][INFO] Updating torrent 1048 ...
index | 2024-02-07T17:18:36.112736242+00:00 [torrust_index::tracker::statistics_importer][INFO] Updating torrent 2641 ...
index | 2024-02-07T17:18:36.337050266+00:00 [torrust_index::tracker::statistics_importer][INFO] Updating torrent 2452 ...
from the Tracker Statistics Importer (cronjob).
- We should add at least logs for each API request (basic request and response). It would be very helpful to resolve issues like the ones described here.
- We should also use targets. See Improve logs: add target, identify running service, identify request torrust-tracker#600. That means to replace this line:
index | 2024-02-07T17:18:36.337050266+00:00 [torrust_index::tracker::statistics_importer][INFO] Updating torrent 2452 ...
with:
index | 2024-02-07T17:18:36.337050266+00:00 [tracker_statistics_importer][INFO] Updating torrent 2452 ...
Metadata
Metadata
Assignees
Labels
- Developer -Torrust Improvement ExperienceTorrust Improvement Experience- System Admin -Enjoyable to Install and Setup our SoftwareEnjoyable to Install and Setup our SoftwareEnhancement / Feature RequestSomething NewSomething New
Type
Projects
Status
Done