News for hackers. Stuff that matters.
Re:You Really Should Log Client-Side Errors by rakeshpai on Wednesday April 04, 2012 @08:53AM (#3797288)
You aren't wrong if you are looking at the server's resource consumption. However, the need to buffer the errors is so that we can minimize network overhead, from the client's perspective. It's to reduce the number of HTTP connections, even if it means the payload is larger - much like why CSS sprites are a good idea.
Re:You Really Should Log Client-Side Errors by wpietri on Wednesday April 04, 2012 @12:45PM (#3798402)
CSS sprites are a good idea because modern web pages have a zillion little icons. If you have a zillion little errors per pageview, I'm inclined to agree with xd: that's the sign of an underlying problem that should be fixed directly. Or if the errors are truly spurious junk, then I've just fixed that by not sending them over the wire at all. Is there some case that wouldn't cover?
Re:You Really Should Log Client-Side Errors by ivanhoe on Thursday April 05, 2012 @12:16PM (#3803243)
It's not very complicated to modify the logic to start buffering on a second error (the first one is sent immediately), and then flush errors to the server and repeat this logic every X seconds... it's just a matter of an extra flag in the error handler
Re:You Really Should Log Client-Side Errors by xd on Wednesday April 04, 2012 @09:12AM (#3797355)
True, also come to think about it, I guess it would limit the damage a rouge loop spitting errors at the server would cause.