Yes, it's on purpose.

Error messages aren't even logged unless DEBUG_ACCESS is set to True, and thus it's not logged in prod (it would have to be in one of the settings files for that to happen).  I figure if someone does want to turn on the DEBUG_ACCESS thing, they can decide for themselves whether they'd rather grep through the printout or truncate the printout themselves, rather than having the confusing line of code.