From a2ca8ff3d94685076d575e7113e5c08e01c6aaaa Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Wed, 24 Feb 2021 16:32:21 -0700 Subject: [PATCH] log common-code and phet-io query parameters in all sims that I'm responsible for --- js/common/NaturalSelectionQueryParameters.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/js/common/NaturalSelectionQueryParameters.js b/js/common/NaturalSelectionQueryParameters.js index 5001611c..3b630745 100644 --- a/js/common/NaturalSelectionQueryParameters.js +++ b/js/common/NaturalSelectionQueryParameters.js @@ -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'; @@ -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, @@ -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;