Skip to content

Commit 82ac910

Browse files
committed
fix check
1 parent 92925ba commit 82ac910

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

http.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ func checkNetwork(r *http.Request) bool {
2222
}
2323

2424
// If supervisor is down
25-
if supervisorPing() {
25+
if !supervisorPing() {
26+
log.Printf("API is disabled / Supervisor is running - %s", remote)
2627
return true
2728
}
2829

0 commit comments

Comments
 (0)