Skip to content

Commit

Permalink
fix: 🐛 Fixed doubling of runtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimck committed Mar 13, 2022
1 parent dd93463 commit 2c7cbab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 1 addition & 3 deletions packages/create-ima-app/template/server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ function renderApp(req, res, next) {
.requestHandler(req, res)
.then(
response => {
// logger.info('Request handled successfully', { response: { status: number, content: string, SPA: boolean=, error: Error= } });

if (response.error) {
logger.error('App error', {
logger.error('Application server error', {
error: errorToJSON(response.error),
});
}
Expand Down
4 changes: 0 additions & 4 deletions packages/server/lib/clientApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ module.exports = (environment, logger, languageLoader, appFactory) => {
let callstack = stackTrace.parse(err);
let fileIndex = 1;

logger.error('The application crashed due to an uncaught exception', {
error: errorToJSON(err),
});

asyncEach(
callstack,
(stackFrame, cb) => {
Expand Down

0 comments on commit 2c7cbab

Please sign in to comment.