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

Refreshes log manager container #910

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Conversation

timacdonald
Copy link
Member

@timacdonald timacdonald commented Jun 18, 2024

This PR ensures that the log manager gets its container refreshed. Context is not being appended to log files as expected due to the stale container.

This is required because we do not eagerly resolve context from the container, so the parent container will never a context repository instance resolved (they belong to the sandbox application).

https://github.com/laravel/framework/blob/02a0b5f6f83b13ea750f959364aefa324441a354/src/Illuminate/Log/LogManager.php#L142-L149

fixes #907

@driesvints
Copy link
Member

Drafting this until we can fix the tests.

@timacdonald timacdonald marked this pull request as ready for review June 20, 2024 01:10
@taylorotwell taylorotwell merged commit aa96a8b into laravel:2.x Jun 20, 2024
12 checks passed
@timacdonald timacdonald deleted the log-manager branch June 21, 2024 00:33
driesvints pushed a commit that referenced this pull request Jun 24, 2024
* Refreshes log manager container

* formatting
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.

Context gets cleared before logging
3 participants