Skip to content

PassageEventSubscriber docblock promises a log channel fallback the code lacks #93

Description

@morcen

Problem

The docblock says logging "falls back to the default channel" when no passage channel exists. The code hardcodes Log::channel('passage') with no fallback, so an unconfigured channel routes through Laravel's emergency logger instead. Small, but the class exists for observability, and its own behavior is mis-documented.

Location

  • src/Listeners/PassageEventSubscriber.php

Fix

Check config('logging.channels.passage') and fall back to the default channel, matching the docblock.

Sizing

Priority 10 (Impact 1, Risk 1, Effort 1). Estimated 1 hour.

From the tech debt audit dated 2026-07-05.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomerstech-debtFrom the technical debt registerv3For versions v3.x

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions