Skip to content

Commit 93644b7

Browse files
authored
printDebug: add label to identify source of the log (#1555)
1 parent ca60884 commit 93644b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ const util = {
289289
*/
290290
printDebug: function (str) {
291291
if (debugMode) {
292-
console.log(str);
292+
console.log('[OpenPGP.js debug]', str);
293293
}
294294
},
295295

@@ -300,7 +300,7 @@ const util = {
300300
*/
301301
printDebugError: function (error) {
302302
if (debugMode) {
303-
console.error(error);
303+
console.error('[OpenPGP.js debug]', error);
304304
}
305305
},
306306

0 commit comments

Comments
 (0)