Before System Log was developed giving developer extra clue about source of an error, in form of call stack trace, was a must. However right now same System Log completely supersedes this functionality of debugger by recording call stack trace not only for some errors/warnings/notices, but for all of them.
That's why I propose to remove any calls to
$this->Application->Debugger->appendTrace(); followed by
trigger_error function call.