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 be8a403 commit 943bcd8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/common/HookesLawQueryParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( {
Expand All @@ -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;

0 comments on commit 943bcd8

Please sign in to comment.