Skip to content

Commit

Permalink
Mirage: Disable logging on /me endpoint (#654)
Browse files Browse the repository at this point in the history
Update config.ts
  • Loading branch information
jeffdaley committed Mar 20, 2024
1 parent 3f52210 commit 5fa3baa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/mirage/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,9 @@ export default function (mirageConfig) {
*************************************************************************/

this.head("/me", (schema, _request) => {
// Stop this from cluttering the console when "Mirage logging" is checked
this.logging = false;

let isLoggedIn = schema.db.me[0].isLoggedIn;

if (isLoggedIn) {
Expand Down

0 comments on commit 5fa3baa

Please sign in to comment.