In ErrorHandler at line 262, the condition is checked against the wrong flag.
the condition must check against $this->logErrorDetails rather than $this->displayErrorDetails. so the line would be:
if (!$this->logErrorDetails) {
If the bug is valid, I can create a pull request to fix it.
More details: It seems writeToErrorLog() is used to save the logs properly somewhere and $this->displayErrorDetails is used by the renderer to show the error details in realtime on the client