Skip to content

Commit

Permalink
Add ability to control Mirage logging via query (#6105)
Browse files Browse the repository at this point in the history
This lets us turn Mirage logging on without editing any
files, which makes it easier to switch between branches.
  • Loading branch information
backspace committed Aug 20, 2019
1 parent c4a45a6 commit 02f6a71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/mirage/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export function findLeader(schema) {
export default function() {
this.timing = 0; // delay for each request, automatically set to 0 during testing

this.logging = window.location.search.includes('mirage-logging=true');

this.namespace = 'v1';
this.trackRequests = Ember.testing;

Expand Down

0 comments on commit 02f6a71

Please sign in to comment.