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
No ability to prevent logs sending from Meta Extension to meta #33
Comments
@ihor-sviziev There currently is the ability to prevent the exception logs from being sent to Meta. Though it might not be adequate so please let me know if so. The logExceptionImmediatelyToMeta function just adds 'log_type' to the context and then calls the logException function. The logException function has a check for if sending logs to Meta is enabled and if it's not enabled then the log is just made locally and is not added to the queue to be persisted to Meta. meta-for-magento2/app/code/Meta/BusinessExtension/Helper/FBEHelper.php Lines 306 to 311 in 3ba5435
Enabling/disabling persisting exception logs to Meta can be controlled by updating the meta_exception_logging_enabled config value.
Currently this config value isn't shown in the UI though and can only be modified in code. By default the value is set to true to enable persisting exception logs to Meta. The reason for this is that the exception logging is pretty critical for us to be able to identify and diagnose issues with the extension so we were afraid that if we showed it in the UI that sellers would turn it off by default. meta-for-magento2/app/code/Meta/BusinessExtension/etc/adminhtml/system.xml Lines 48 to 53 in 3ba5435
Is this acceptable or does disabling sending exception logs to Meta need to be prevalent in the UI? Thanks! |
I noticed that this extension sends a part of the logs to Meta. There is supposed to be an ability to enable/disable this functionality.
Related functionality:
meta-for-magento2/app/code/Meta/BusinessExtension/Helper/FBEHelper.php
Lines 340 to 344 in c1a47c7
meta-for-magento2/app/code/Meta/BusinessExtension/Logger/Handler.php
Lines 66 to 75 in c1a47c7
meta-for-magento2/app/code/Meta/BusinessExtension/etc/queue_consumer.xml
Lines 3 to 4 in c1a47c7
meta-for-magento2/app/code/Meta/BusinessExtension/Helper/GraphAPIAdapter.php
Lines 936 to 967 in c1a47c7
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
The text was updated successfully, but these errors were encountered: