Skip to content

Bug: logs polling suppresses legitimate repeated log lines #234

@codxbrexx

Description

@codxbrexx

Summary

The current logs polling logic treats every previously seen line as globally unique.
If the application prints the same message twice at different times, the later occurrence is hidden from the user.

Image

Steps To Reproduce

  1. Deploy an app that prints the same line multiple times
  2. Run the logs flow.
  3. The first occurrence is shown.
  4. Later identical occurrences are skipped because the string already exists in (logsTill).

Expected Behavior

Repeated identical lines should still appear if they occur again later in the log stream.

Actual Behavior

The CLI hides later occurrences of the same line, making log output incomplete and misleading.

Proposed Fix

  • Track the last emitted position instead of using global string membership.
  • Compare by appended tail or line index/count rather than content-only deduplication.
  • Add a unit test where the same line appears multiple times across polling iterations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions