Skip to content

Commit

Permalink
log common-code and phet-io query parameters in all sims that I'm res…
Browse files Browse the repository at this point in the history
…ponsible for
  • Loading branch information
pixelzoom committed Feb 24, 2021
1 parent c331115 commit a2ca8ff
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions js/common/NaturalSelectionQueryParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

import Range from '../../../dot/js/Range.js';
import logGlobal from '../../../phet-core/js/logGlobal.js';
import naturalSelection from '../naturalSelection.js';
import NaturalSelectionUtils from './NaturalSelectionUtils.js';

Expand Down Expand Up @@ -285,9 +286,6 @@ function parseRange( value ) {
return new Range( numbers[ 0 ], numbers[ 1 ] );
}

// log the values of all sim-specific query parameters
phet.log && phet.log( 'query parameters: ' + JSON.stringify( NaturalSelectionQueryParameters, null, 2 ) );

// validate query parameters
assert && assert( NaturalSelectionQueryParameters.wolvesEnvironmentMultiplier *
NaturalSelectionQueryParameters.wolvesPercentToEatRange.max <= 1,
Expand All @@ -301,4 +299,10 @@ if ( NaturalSelectionQueryParameters.shortTeethMultiplier *
}

naturalSelection.register( 'NaturalSelectionQueryParameters', NaturalSelectionQueryParameters );

// Log query parameters
logGlobal( 'phet.chipper.queryParameters' );
logGlobal( 'phet.preloads.phetio.queryParameters' );
logGlobal( 'phet.naturalSelection.NaturalSelectionQueryParameters' );

export default NaturalSelectionQueryParameters;

0 comments on commit a2ca8ff

Please sign in to comment.