Browse Source

chore-log-readability

master
Serge Shutov 2 weeks ago
parent
commit
630bb760e1
  1. 4
      content/content.js

4
content/content.js

@ -227,11 +227,11 @@ @@ -227,11 +227,11 @@
console.log('[dsh-memory] call ok', call.tool, res.durationMs);
if (UI) UI.log('ok ' + call.tool);
} else {
console.warn('[dsh-memory] call failed', call.tool, res.error);
console.warn('[dsh-memory] call failed', call.tool, JSON.stringify(res.error));
if (UI) UI.log('fail ' + call.tool);
}
} else {
console.warn('[dsh-memory] call failed', call.tool);
console.warn('[dsh-memory] call failed (no res)', call.tool);
if (UI) UI.log('fail ' + call.tool);
}
}).catch(function (err) { console.warn('[dsh-memory] call throw', call.tool, String(err)); }).then(step);

Loading…
Cancel
Save