Skip to content

Commit 9437d25

Browse files
Update server/monitor-types/mysql.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
1 parent 857f4e9 commit 9437d25

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

server/monitor-types/mysql.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,13 @@ class MysqlMonitorType extends MonitorType {
5151
// Backwards compatible: just check connection and return row count
5252
const result = await this.mysqlQuery(monitor.databaseConnectionString, query, password);
5353
heartbeat.ping = dayjs().valueOf() - startTime;
54+
heartbeat.status = UP;
5455
heartbeat.msg = result;
5556
}
5657
} catch (error) {
5758
heartbeat.ping = dayjs().valueOf() - startTime;
58-
log.error("mysql", "Database query failed:", error.message);
5959
throw new Error(`Database connection/query failed: ${error.message}`);
6060
}
61-
62-
heartbeat.status = UP;
6361
}
6462

6563
/**

0 commit comments

Comments
 (0)