mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 15:06:59 +08:00
prevent unexpected error throw from checkCertificate interrupt the beat
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user