nicer debug logging

This commit is contained in:
Dima Gerasimov 2019-01-28 23:41:40 +00:00 committed by Dmitrii Gerasimov
parent d0b9854cf7
commit 64ecbf5be0

View file

@ -44,7 +44,7 @@ function makeCaptureRequest(
// TODO handle json parsing defensively here // TODO handle json parsing defensively here
const response = JSON.parse(rtext); const response = JSON.parse(rtext);
const path = response.path; const path = response.path;
console.log(`[background] success: ${response}`); console.log(`[background] success: ${rtext}`);
if (options.notification) { if (options.notification) {
showNotification(`OK: captured to ${path}`); showNotification(`OK: captured to ${path}`);
} }