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 for issue #6377 #6378

Merged
merged 5 commits into from
Feb 7, 2023
Merged

Fix for issue #6377 #6378

merged 5 commits into from
Feb 7, 2023

Conversation

beachwalker
Copy link
Contributor

@beachwalker beachwalker commented Jan 31, 2023

  • created a setting property LogSerializerOverrideOnStart to reflect if warning should be logged or not
  • updated default config to enable logging for this issue by default
  • added property to the configuration specification

Fixes #6377

Changes

Allows to suppress the WARNING message about changes in the serializer settings.

Set the value in the config
log-serializer-override-on-start = off
to disable the logging of the message.
The default value is on to get notified at the first time and check if the change was by intention.

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

  • This change follows the Akka.NET API Compatibility Guidelines.
  • This change follows the Akka.NET Wire Compatibility Guidelines.
  • I have reviewed my own pull request.
  • Design discussion issue #
    It is worth to mention that the solution has the shortcomming of a global enable/disable behavior. It would be nice to just mark the intended change (for example by having a white list of checked changes configured in a mapping table (type <-> serializer)) but this seems to be an overkill for the rare cases to me.
  • Changes in public API reviewed, if any.
  • I have added website documentation for this feature.
    I only added the change to the default config and documented the code (according the other configuration properties documentation). However, I wrote no Markdown files or so. Please ask, if required.

The changes do not affect the performance, so I added no benchmarks.

* created a setting property LogSerializerOverrideOnStart to reflect if warning should be logged or not
* updated default config to enable logging for this issue by default
* added property to the configuration Spezifikation
@beachwalker
Copy link
Contributor Author

image

... no idea what is wrong here after trying to run the tests again. :-(

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

LGTM

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) February 7, 2023 01:12
@Aaronontheweb Aaronontheweb merged commit 2f5aab2 into akkadotnet:dev Feb 7, 2023
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.

Suppress warning for serializer configuration changes
2 participants