Skip to content

Make tracker startup and shutdown logs coherent for operators #2387

Open
1 of 1 issue completed
Open

Description

@josecelano

Goal

An operator who starts the tracker and then stops it should get startup and shutdown logs that use one consistent message style, field names, and levels, and that include the facts needed to see what is running and whether it stopped cleanly.

Background

The Copilot review of PR #2382 (issue #2370, EPIC #1488 SI-15) found that the new UDP drain logs named the listener local_addr. The rest of the codebase mostly uses service_binding. The drain logs were renamed, but the older UDP receive-loop logs still say local_addr, because #2370 must not change existing log messages. The maintainer asked for a follow-up covering the whole lifecycle: run the tracker, read what it logs at startup, shut it down, read what it logs then, make everything coherent, and look for missing operator information.

A baseline capture (release build, development configuration with every service enabled, stopped with SIGTERM) shows, among other things:

  • the listener identified as local_addr, service_binding, address, and bind_address;
  • message prefixes mixing styles, such as UDP TRACKER: next to torrust_tracker_lib::bootstrap::jobs::manager:;
  • internal Debug output in span fields, such as cancellation_token=CancellationToken { is_cancelled: false } on every job startup line;
  • the same start reported two or three times (Starting on, Started on, Started ...);
  • 26 INFO lines for metric registration, formatted with Debug;
  • eight startup WARN lines when usage statistics are disabled;
  • four wordings for shutdown messages.

Scope

  • Capture startup and shutdown logs with every service enabled, at info and debug.
  • Inventory every lifecycle log line.
  • Propose a lifecycle logging convention for maintainer approval.
  • Apply it one component at a time.
  • Add approved missing operator information, such as an effective configuration summary, version, deadlines, per-component stop outcomes, and the final process outcome.
  • Fix or reclassify misleading lifecycle warnings.

Out of scope:

Postponed

Start after EPIC #1488 (tracker shutdown overhaul) is complete. Its remaining subissues still change shutdown behavior and logs, so this work should start from the final shutdown design and a fresh baseline capture.

Specification

The full specification and the verbatim baseline log are in docs/issues/open/ in the review-tracker-lifecycle-logs folder for this issue. They are added by PR #2382.

Related: #1166, #2370, #1488

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added 3 commits that reference this issue on Sep 30, 2026
  2. self-assigned this
    on Nov 21, 2026
  3. added theissue type on Nov 23, 2026
  4. added 6 commits that reference this issue on Nov 23, 2026
  5. 44 remaining items

  6. added 2 commits that reference this issue on Nov 24, 2026
  7. added a commit that references this issue on Nov 24, 2026
  8. added 7 commits that reference this issue on Nov 24, 2026
  9. added 4 commits that reference this issue on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

EPIC

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions