Skip to content

Conversation

@QuietMisdreavus
Copy link
Contributor

When inspecting logs for the server process, there are a lot of log lines that are simply

2019/02/14 21:24:16 [DEBUG] cratesfyi::web: Requested resource not found

This PR adds an extra debug!() call to the error handler that also prints the URL, to aid in debugging whether it's a missing static file, a misspelled crate, or a drive-by Wordpress attack. This is mainly for my own curiosity, since i want to see if there's a pattern in the amount of 404s we get.

@onur
Copy link
Contributor

onur commented Feb 15, 2019

Thanks. I also think its much better if we remove that debug message in src/web/mod.rs in the future. That message is causing so much noise in the our main log file. We can just use web servers log file for 404 requests.

Also IIRC there was some bug in that message but I can't remember 😄

@onur onur merged commit cee3f82 into rust-lang:master Feb 15, 2019
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.

2 participants