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

fix!: change search endpoint log level to debug #2483

Merged
merged 2 commits into from
May 29, 2024
Merged

Conversation

taefi
Copy link
Contributor

@taefi taefi commented May 28, 2024

Description

In 24.4 the mechanism for hot-reloading the endpoint related changes is either based on HotSwapAgent or through Polling the changes, and when using polling by enabling the hilla.endpoint.hot-reload this INFO level log is annoying for the developers, since in most of the projects the endpoints are right there in the project and that log is not helping very much, and in other cases when there's a problem, the log level can easily be changed to debug to see this.
Based on internal discussion there is no need to make the Parser's code unnecessarily complicated just to have different log levels conditionally.

Fixes #2476

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/guide/contributing/overview/
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.

In 24.4 the mechanism for hot-reloading the endpoint
related changes is either based on HotSwapAgent or
through Polling the changes, and when using polling
by enabling the `hilla.endpoint.hot-reload` this
INFO level log is annoying for the developers, since
in most of the projects the endpoints are right there
in the project and that log is not helping very much,
and in other cases when there's a problem, the log
level can easily be changed to debug to see this.
Based on internal discussion there is no need to
make the Parser's code unnecessarily complicated
just to have different log levels conditionally.
Copy link

codecov bot commented May 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (24.4@e604146). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             24.4    #2483   +/-   ##
=======================================
  Coverage        ?   95.01%           
=======================================
  Files           ?       66           
  Lines           ?     4557           
  Branches        ?      661           
=======================================
  Hits            ?     4330           
  Misses          ?      183           
  Partials        ?       44           
Flag Coverage Δ
unittests 95.01% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

sonarcloud bot commented May 29, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@platosha platosha merged commit 66a4bf7 into 24.4 May 29, 2024
11 of 15 checks passed
@platosha platosha deleted the taefi/fix-2476 branch May 29, 2024 08:12
@taefi
Copy link
Contributor Author

taefi commented May 29, 2024

This is probably not needed in main, since the polling mechanism for endpoint hot reload is removed completely.

vaadin-bot pushed a commit that referenced this pull request May 29, 2024
In 24.4 the mechanism for hot-reloading the endpoint
related changes is either based on HotSwapAgent or
through Polling the changes, and when using polling
by enabling the `hilla.endpoint.hot-reload` this
INFO level log is annoying for the developers, since
in most of the projects the endpoints are right there
in the project and that log is not helping very much,
and in other cases when there's a problem, the log
level can easily be changed to debug to see this.
Based on internal discussion there is no need to
make the Parser's code unnecessarily complicated
just to have different log levels conditionally.
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Hilla 24.4.0.rc1 and is also targeting the upcoming stable 24.4.0 version.

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.

4 participants