Problem/Motivation
Sometimes developers may not need linkcherer logs if checking the links statuses is the responsibility of site managers. But currently, it's not possible to disable logging of errors, at least completely. I mean even if you set the logging level to error and ignore all response codes the system will still log errors via exceptionHandling method. Because of this system logs may be polluted by these entries.
Proposed resolution
Add new logging level option `Disable logging.` which may have '-1' key in order to not modify linkchecker_watchdog_log function.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | linkchecker-disable-logging-3218314-4.patch | 1016 bytes | id.aleks |
Issue fork linkchecker-3218314
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
id.aleks commentedComment #4
id.aleks commentedUploaded a patch from https://git.drupalcode.org/project/linkchecker/-/merge_requests/12
Comment #5
eiriksm💪👍
Great idea!
I would love to also have a test for this. Would you be able to get that in the merge request as well? 🤓
Comment #6
id.aleks commentedHello @eiriksm. Yes, I will do this in the upcoming days.
Comment #7
eiriksmAmazing! 🙏
Comment #8
jeroentComment #10
bluegeek9 commentedThis was implemented in the 2.1.x branch.
I am closing the issue as outdated. If you disagree, please change the status.