Skip to content

Commit

Permalink
remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysmithTTD committed Nov 25, 2024
1 parent 2371bdd commit e5ceab1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ app.use(helmet());
app.use(i18n.init);
app.use((req, _res, next) => {
const locale = req.acceptsLanguages()[0] || LanguagesUID2.English;
console.log(locale)
i18n.setLocale(locale);
next();
});
Expand Down Expand Up @@ -87,7 +86,7 @@ app.use((err: any, req: Request, res: Response, _next: NextFunction) => {
else {
errorPageMessage = res.__("Unknown Error")

Check failure on line 87 in src/app.ts

View workflow job for this annotation

GitHub Actions / build

Strings must use singlequote

Check failure on line 87 in src/app.ts

View workflow job for this annotation

GitHub Actions / build

Missing semicolon

Check failure on line 87 in src/app.ts

View workflow job for this annotation

GitHub Actions / build

Strings must use singlequote

Check failure on line 87 in src/app.ts

View workflow job for this annotation

GitHub Actions / build

Missing semicolon
}

res.render('error', { errorPageMessage });
});

Expand Down

0 comments on commit e5ceab1

Please sign in to comment.