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

Introduce Debug Mode #548

Open
Zodiac1978 opened this issue Dec 9, 2023 · 1 comment
Open

Introduce Debug Mode #548

Zodiac1978 opened this issue Dec 9, 2023 · 1 comment
Assignees
Labels
in progress v3 This issue is for the new version (v3) of the plugin

Comments

@Zodiac1978
Copy link
Member

Following the last v3 introduction, I see the need to better understand what is happening in each module.

Proposal: What about adding a new setting called "Enable Debug Mode" to our options.

In each module we can check if this option is enabled and if yes, we log additional information, like this ...

  • Checking comment with ID: xy
  • Honeypot check enabled, exit with spam score: xy
  • Country check disabled, exit without changing score
  • ...

This way we could better see in the beta phase (with enabled debug mode) what is happening is where thing go wrong.

@Zodiac1978 Zodiac1978 added the v3 This issue is for the new version (v3) of the plugin label Dec 9, 2023
@florianbrinkmann florianbrinkmann self-assigned this Dec 15, 2023
@florianbrinkmann
Copy link
Member

I added a DebugMode class in adb250e which can be used to log things to a debug log file in wp-content if the ANTISPAM_BEE_DEBUG_MODE_ENABLED constant is set to true. I also added first loggings to the rule handling and the precheck method of the honeypot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress v3 This issue is for the new version (v3) of the plugin
Projects
None yet
Development

No branches or pull requests

2 participants