Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[MonologBridge] Fix support for monolog 3.0#52222

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

louismariegaborit
Copy link
Contributor

@louismariegaboritlouismariegaborit commentedOct 21, 2023
edited
Loading

QA
Branch?6.3
Bug fix?yes
New feature?no
Deprecations?no
Issues
LicenseMIT

handle function in HandlerInterface supports only LogRecord argument in monolog 3.0.

damien-louis reacted with thumbs up emoji
@xabbuh
Copy link
Member

Can you add a test to prevent future regressions?

@louismariegaborit
Copy link
ContributorAuthor

Can you add a test to prevent future regressions?

I think it's difficult in this PR to add test because mock stream functions will cause a refactoring of the command.
I might try doing this in an other PR. What do you think ?

@louismariegaboritlouismariegaboritforce-pushed thefix_server_log_command branch 2 times, most recently from8a05567 to3555d5aCompareOctober 22, 2023 07:45
@louismariegaborit
Copy link
ContributorAuthor

I don't know how to fix psalm error because in monolog 2.x, LogRecord is an interface and psalm runs with this version.
Anyone have an idea?

channel: $record['channel'],
context: $record['context']->getContext(),
datetime: $record['datetime'],
message: $record['message'],

Choose a reason for hiding this comment

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

let's not use named arguments if possible

Copy link
ContributorAuthor

@louismariegaboritlouismariegaboritOct 29, 2023
edited
Loading

Choose a reason for hiding this comment

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

Ok I did the change. But why don't use named arguments ?
Named arguments are already used for the LogRecord.

@stof
Copy link
Member

Don't care about Psalm in this case. This is an expected error due to supporting several versions of Monolog. Our psalm setup only reportsnew issues for each PR, so this won't both future PRs.

louismariegaborit reacted with thumbs up emoji

@derrabus
Copy link
Member

Good catch, thanks@louismariegaborit.

louismariegaborit reacted with laugh emoji

@derrabusderrabus merged commit0196872 intosymfony:6.3Oct 29, 2023
@louismariegaboritlouismariegaborit deleted the fix_server_log_command branchOctober 30, 2023 02:36
This was referencedNov 10, 2023
@DavidPrevotDavidPrevot mentioned this pull requestJan 10, 2024
nicolas-grekas added a commit that referenced this pull requestJan 29, 2024
…ouismariegaborit)This PR was merged into the 6.3 branch.Discussion----------[MonologBridge] Fix context data and display extra data| Q             | A| ------------- | ---| Branch?       | 6.3| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Issues        | ->| License       | MITFix the compatibility with Monolog 3. In the PR#52222 we had the compatibility with Monolog 3 but context parameter is incorrect and extra parameter is missing.No test can be added because testing this command is not possible at this time. Another PR (#53518) was opened to add test on this command.Commits-------8687ae0 Fix context data and display extra data
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@derrabusderrabusderrabus approved these changes

@nicolas-grekasnicolas-grekasAwaiting requested review from nicolas-grekas

Assignees
No one assigned
Projects
None yet
Milestone
6.3
Development

Successfully merging this pull request may close these issues.

6 participants
@louismariegaborit@xabbuh@stof@derrabus@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp