Skip to content

Comments

Add AMBER_LOG_ROBOTSTXT_ERRORS constant to silence error_log for robots.txt errors#58

Open
jerclarke wants to merge 1 commit intoberkmancenter:wordpressfrom
jerclarke:patch-1
Open

Add AMBER_LOG_ROBOTSTXT_ERRORS constant to silence error_log for robots.txt errors#58
jerclarke wants to merge 1 commit intoberkmancenter:wordpressfrom
jerclarke:patch-1

Conversation

@jerclarke
Copy link

  • We ended up with a lot of URLs in our queue that get blocked by robots.txt
  • Having them output to error_log() makes it hard to read our logs, and offers nothing
  • This adds a simple constant that can be put in wp-config or elsewhere to disable the error logging
  • I'd also support just removing this error_log entirely. There are better ways we could get access to this information.

…bots.txt

- We ended up with a lot of URLs in our queue that get blocked by robots.txt
- Having them output to error_log() makes it hard to read our logs, and offers nothing
- This adds a simple constant that can be put in wp-config or elsewhere to disable the error logging
- I'd also support just removing this error_log entirely. There are better ways we could get access to this information.
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.

1 participant