mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-20 21:26: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) {
|
printDebug: function (str) {
|
||||||
if (debugMode) {
|
if (debugMode) {
|
||||||
console.log(str);
|
console.log('[OpenPGP.js debug]', str);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -300,7 +300,7 @@ const util = {
|
|||||||
*/
|
*/
|
||||||
printDebugError: function (error) {
|
printDebugError: function (error) {
|
||||||
if (debugMode) {
|
if (debugMode) {
|
||||||
console.error(error);
|
console.error('[OpenPGP.js debug]', error);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user