mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
add logs for checkHealth
This commit is contained in:
@ -44,6 +44,7 @@ var idCheckInterval, c_nCheckHealth = 60000, c_sCheckWord = 'color', c_sCheckLan
|
|||||||
var canStartCheck = true;
|
var canStartCheck = true;
|
||||||
var statusCheckHealth = true;
|
var statusCheckHealth = true;
|
||||||
function checkHealth (worker) {
|
function checkHealth (worker) {
|
||||||
|
logger.info('checkHealth');
|
||||||
if (!statusCheckHealth) {
|
if (!statusCheckHealth) {
|
||||||
logger.error('error check health, restart!');
|
logger.error('error check health, restart!');
|
||||||
worker.kill();
|
worker.kill();
|
||||||
@ -53,6 +54,7 @@ function checkHealth (worker) {
|
|||||||
statusCheckHealth = false;
|
statusCheckHealth = false;
|
||||||
}
|
}
|
||||||
function endCheckHealth (msg) {
|
function endCheckHealth (msg) {
|
||||||
|
logger.info('endCheckHealth');
|
||||||
statusCheckHealth = true;
|
statusCheckHealth = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user