Bug 1012924 diagnostics - increase the log length to 10, r=gfritzsche

This commit is contained in:
Benjamin Smedberg 2014-08-20 13:07:28 -04:00
parent 88c631d8bb
commit 6e1f733133

View File

@ -359,7 +359,7 @@ Experiments.Experiments = function (policy=new Experiments.Policy()) {
// crashes. For forensics purposes, keep the last few log
// messages in memory and upload them in case of crash.
this._forensicsLogs = [];
this._forensicsLogs.length = 3;
this._forensicsLogs.length = 10;
this._log = Object.create(log);
this._log.log = (level, string, params) => {
this._forensicsLogs.shift();