Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,13 +608,17 @@ app.listen = function listen() {
/**
* Log error using console.error.
*
* Logs the full error object to preserve details like `cause` property
* and other custom error properties that would be lost when only
* logging the stack trace.
*
* @param {Error} err
* @private
*/

function logerror(err) {
/* istanbul ignore next */
if (this.get('env') !== 'test') console.error(err.stack || err.toString());
if (this.get('env') !== 'test') console.error(err);
}

/**
Expand Down