0
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-11-22 11:47:30 +01:00

Fix for issue in logs

This fix address the issue described here: https://github.com/louislam/uptime-kuma/issues/1024
This commit is contained in:
Joseph Benguira 2022-01-12 10:12:12 +02:00 committed by GitHub
parent fe0bce268d
commit 13acdd4c65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,9 @@ class Prometheus {
}
try {
monitor_cert_days_remaining.set(this.monitorLabelValues, tlsInfo.certInfo.daysRemaining);
if ( tlsInfo.certInfo != null ){
monitor_cert_days_remaining.set(this.monitorLabelValues, tlsInfo.certInfo.daysRemaining);
}
} catch (e) {
console.error(e);
}