Skip to content

Conversation

@lyrixx
Copy link
Member

@lyrixx lyrixx commented May 16, 2019

Q A
Branch? 4.4
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #27426
License MIT
Doc PR

This is a bit strange but Monolog\Processor::pushProcessor() prepend the processor to the stack.

Since the Compiler Pass has a low priority, the DebugProcessor is always
the last one to be added to the stack, so the first one in it.

Copy link
Contributor

@ogizanagi ogizanagi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and validated 👍

@lyrixx lyrixx changed the base branch from master to 4.4 June 3, 2019 15:32
@lyrixx lyrixx merged commit 429307d into symfony:4.4 Jun 3, 2019
lyrixx added a commit that referenced this pull request Jun 3, 2019
…ocessor (lyrixx)

This PR was merged into the 4.4 branch.

Discussion
----------

[Monolog] Setup the LoggerProcessor after all other processor

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #27426
| License       | MIT
| Doc PR        |

---

This is a bit strange but [`Monolog\Processor::pushProcessor()`](https://github.com/Seldaek/monolog/blob/ebb804e432e8fe0fe96828f30d89c45581d36d07/src/Monolog/Logger.php#L224-L229)  **prepend** the processor to the stack.

Since the Compiler Pass has a low priority, the `DebugProcessor` is always
the last one to be added to the stack, so the first one in it.

Commits
-------

429307d [Monolog] Setup the LoggerProcessor after all other processor
@lyrixx lyrixx deleted the monolog-processor-debug branch June 3, 2019 15:34
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.4 Oct 27, 2019
This was referenced Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants