Bug 918073 - dbg server's dumpn should prefix all lines with DBG-SERVER so that whitespace is preserved; r=dcamp

This commit is contained in:
Nick Fitzgerald 2013-09-18 14:30:13 -07:00
parent 4ff666c014
commit 9d1632df73

View File

@ -80,7 +80,9 @@ loadSubScript.call(this, "resource://gre/modules/devtools/DevToolsUtils.js");
function dumpn(str) {
if (wantLogging) {
dump("DBG-SERVER: " + str + "\n");
for (let line of str.split(/\n/g)) {
dump("DBG-SERVER: " + line + "\n");
}
}
}