Skip to content

Commit 29346ec

Browse files
committed
Don't be error level but information level.
diff --git a/common/components/protocols.js b/common/components/protocols.js --- a/common/components/protocols.js +++ b/common/components/protocols.js @@ -234,22 +234,22 @@ stream.init(cstream); var text = stream.read(-1); stream.close(); cstream.close(); text = convert(text); var stream = Cc["@mozilla.org/network/file-output-stream;1"].createInstance(Ci.nsIFileOutputStream); - Cu.reportError(temp.leafName); + Services.console.logStringMessage("create:" + temp.leafName); stream.init(temp, 0x2 | 0x8 | 0x20, 0644, 0); stream.write(text, text.length); stream.close(); temp.lastModifiedTime = lastModifiedTime; - } else { Cu.reportError("use cache:" + uri.spec); } + } else { Services.console.logStringMessage("use cache:" + uri.spec); } return ioService.newChannelFromURI(ioService.newFileURI(temp)); } catch (ex) { Cu.reportError(ex); } } } return fakeChannel(uri); } switch(uri.host) { case "help":
1 parent e1c9da2 commit 29346ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/components/protocols.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,12 @@ Liberator.prototype = {
239239
text = convert(text);
240240

241241
var stream = Cc["@mozilla.org/network/file-output-stream;1"].createInstance(Ci.nsIFileOutputStream);
242-
Cu.reportError(temp.leafName);
242+
Services.console.logStringMessage("create:" + temp.leafName);
243243
stream.init(temp, 0x2 | 0x8 | 0x20, 0644, 0);
244244
stream.write(text, text.length);
245245
stream.close();
246246
temp.lastModifiedTime = lastModifiedTime;
247-
} else { Cu.reportError("use cache:" + uri.spec); }
247+
} else { Services.console.logStringMessage("use cache:" + uri.spec); }
248248
return ioService.newChannelFromURI(ioService.newFileURI(temp));
249249
} catch (ex) { Cu.reportError(ex); }
250250
}

0 commit comments

Comments
 (0)