Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MonologBridge] Fixed the WebProcessor #4151

Merged
merged 1 commit into from Apr 29, 2012

Conversation

stof
Copy link
Member

@stof stof commented Apr 29, 2012

The WebProcessor can now be registered as a kernel.request listener to
get the request instead of passing it as a constructor argument, which
was broken as the request is not yet available when the logger is
instantiated.

I'm sending it to 2.0 even if the way to use the processor is not BC as this is really a bugfix. The processor was simply unusable with the previous way. Tell me if you think it should only be fixed for 2.1

Fixes #3311

The WebProcessor can now be registered as a kernel.request listener to
get the request instead of passing it as a constructor argument, which
was broken as the request is not yet available when the logger is
instantiated.
fabpot added a commit that referenced this pull request Apr 29, 2012
Commits
-------

689a40d [MonologBridge] Fixed the WebProcessor

Discussion
----------

[MonologBridge] Fixed the WebProcessor

The WebProcessor can now be registered as a kernel.request listener to
get the request instead of passing it as a constructor argument, which
was broken as the request is not yet available when the logger is
instantiated.

I'm sending it to 2.0 even if the way to use the processor is not BC as this is really a bugfix. The processor was simply unusable with the previous way. Tell me if you think it should only be fixed for 2.1

Fixes #3311
@fabpot fabpot merged commit 689a40d into symfony:2.0 Apr 29, 2012
@fabpot
Copy link
Member

fabpot commented Apr 29, 2012

Tests broke.

@Seldaek
Copy link
Member

Seldaek commented Apr 29, 2012

👍 (minus the test breakage;)

@stof
Copy link
Member Author

stof commented Apr 29, 2012

I indeed forgot to update the test to set request through the setter. Unfortunately, I'm on a McDonald's connection currently (which allows me to do some stoffing) and I cannot use SSH to push new changes (this branch was in my repo since a few days but I forgot to send the PR)

@fabpot
Copy link
Member

fabpot commented Apr 30, 2012

@stof: Can you fix the tests please?

@ghost
Copy link

ghost commented May 10, 2013

This is an old fix but the documentation is needed on how to use Web Processor behind Load Balancer, where serverData['REMOTE_ADDR'] may not return the correct IP, right ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants