mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-19 12:46:38 +00:00
printDebug
: add label to identify source of the log (#1555)
This commit is contained in:
parent
ca60884c05
commit
93644b7c58
@ -289,7 +289,7 @@ const util = {
|
||||
*/
|
||||
printDebug: function (str) {
|
||||
if (debugMode) {
|
||||
console.log(str);
|
||||
console.log('[OpenPGP.js debug]', str);
|
||||
}
|
||||
},
|
||||
|
||||
@ -300,7 +300,7 @@ const util = {
|
||||
*/
|
||||
printDebugError: function (error) {
|
||||
if (debugMode) {
|
||||
console.error(error);
|
||||
console.error('[OpenPGP.js debug]', error);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user