Add ability to control Mirage logging via query (#6105)

This lets us turn Mirage logging on without editing any
files, which makes it easier to switch between branches.
This commit is contained in:
Buck Doyle
2019-08-20 08:36:08 -05:00
committed by GitHub
parent c4a45a6bbc
commit 02f6a71dae

View File

@@ -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;