prevent unexpected error throw from checkCertificate interrupt the beat

This commit is contained in:
LouisLam
2021-07-23 12:58:05 +08:00
parent 6b72d5033a
commit 48f82b55f8
2 changed files with 18 additions and 3 deletions

View File

@@ -14,3 +14,9 @@ exports.ucfirst = function (str) {
return firstLetter.toUpperCase() + str.substr(1);
}
exports.debug = (msg) => {
if (process.env.NODE_ENV === "development") {
console.log(msg)
}
}