From 943bcd8a52566c8a89ac17d4b6e85086052d27ba Mon Sep 17 00:00:00 2001 From: Chris Malley Date: Wed, 24 Feb 2021 16:32:22 -0700 Subject: [PATCH] log common-code and phet-io query parameters in all sims that I'm responsible for --- js/common/HookesLawQueryParameters.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/js/common/HookesLawQueryParameters.js b/js/common/HookesLawQueryParameters.js index dd4c6f19..cfc77184 100644 --- a/js/common/HookesLawQueryParameters.js +++ b/js/common/HookesLawQueryParameters.js @@ -6,6 +6,7 @@ * @author Chris Malley (PixelZoom, Inc.) */ +import logGlobal from '../../../phet-core/js/logGlobal.js'; import hookesLaw from '../hookesLaw.js'; const HookesLawQueryParameters = QueryStringMachine.getAll( { @@ -17,7 +18,9 @@ const HookesLawQueryParameters = QueryStringMachine.getAll( { hookesLaw.register( 'HookesLawQueryParameters', HookesLawQueryParameters ); -// log the values of all sim-specific query parameters -phet.log && phet.log( 'query parameters: ' + JSON.stringify( HookesLawQueryParameters, null, 2 ) ); +// Log query parameters +logGlobal( 'phet.chipper.queryParameters' ); +logGlobal( 'phet.preloads.phetio.queryParameters' ); +logGlobal( 'phet.hookesLaw.HookesLawQueryParameters' ); export default HookesLawQueryParameters; \ No newline at end of file