fix gateway reload will cause pico stop working issue (#2082)
* fix gateway reload will cause pico stop working issue * fix for review
This commit is contained in:
1 parent
60d7ec20a5
commit
f1cb7cc8f5
8 files changed
+336
-43
No files matched your search
@@ -730,8 +730,8 @@ func (h *Handler) gatewayStatusData() map[string]any {
|
||||
gateway.mu.Unlock()
|
||||
logger.ErrorC("gateway", fmt.Sprintf("Gateway health check failed: %v", err))
|
||||
} else {
|
||||
logger.InfoC("gateway", fmt.Sprintf("Gateway health status: %d", statusCode))
|
||||
if statusCode != http.StatusOK {
|
||||
logger.WarnC("gateway", fmt.Sprintf("Gateway health status: %d", statusCode))
|
||||
gateway.mu.Lock()
|
||||
setGatewayRuntimeStatusLocked("error")
|
||||
gateway.mu.Unlock()
|
||||
|
||||
Reference in new issue
Block a user