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

Log info to console, don't log context by default #14434

Merged
merged 3 commits into from Mar 18, 2024

Conversation

timkelty
Copy link
Contributor

Description

Since we moved to Monolog, we explicitly silenced logs below warnings when CRAFT_STREAM_LOG=1 AND the current request was a console request. This was done intentionally, so you didn't have console output mixed in with log output, but now that seems a bit short-sighted.

This PR removes that condition, so logs will go to stderr/out as configured by monologTargetConfig.level, or determined by devMode by default. Additionally, it doesn't log request context by default for console requests, which was likely the annoyance that cause this to be this way in the first place.

Related issues

Fixes #14280

@brandonkelly brandonkelly changed the base branch from develop to 4.8 February 22, 2024 00:21
@timkelty timkelty changed the base branch from 4.8 to develop March 18, 2024 14:43
@timkelty timkelty changed the base branch from develop to 4.9 March 18, 2024 14:48
[ci skip]
@brandonkelly brandonkelly merged commit 169bc2b into 4.9 Mar 18, 2024
@brandonkelly brandonkelly deleted the bugfix/log-info-to-console branch March 18, 2024 18:15
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.

[4.x]: console command logs below warning are never logged
2 participants