Firefox OS/Metrics: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 46: Line 46:
}
}
</pre></code>
</pre></code>
==Testing tips==
Testing the FTU ping can be tedious and time consuming with the default settings. Here's a few things you can do to make it better:
* When using build.sh or make, set FTU_PING_URL to a local IP so you can monitor the http request, i.e: <tt>cd gaia; make FTU_PING_URL=... reset-gaia</tt>
* Set <tt>DEBUG = true</tt> in <tt>gaia/apps/system/js/ftu_ping.js</tt> to see messages at various stages of the ping lifecycle, and the raw ping data when it is actually sent
* Change <tt>DEFAULT_TRY_INTERVAL</tt> in <tt>gaia/apps/system/js/ftu_ping.js</tt> to something much smaller than 1 hour (i.e. 15 seconds)


=Phase 1=
=Phase 1=
23

edits