Skip to content

Commit

Permalink
Expected state should be "" not "running" (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Oct 14, 2022
1 parent 949182d commit 75e9943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type statusData struct {
func statusIndex(w http.ResponseWriter, r *http.Request) {
pingData := supervisorPing()
data := statusData{
SupervisorConnected:pingData.Connected,
SupervisorConnected: pingData.Connected,
SupervisorState: pingData.State,
}

Expand All @@ -87,7 +87,7 @@ func statusIndex(w http.ResponseWriter, r *http.Request) {
}

// Set logs
if data.SupervisorState != "running" || !data.SupervisorConnected {
if data.SupervisorState != "" || !data.SupervisorConnected {
var buf bytes.Buffer
var re = regexp.MustCompile(`\[\d+m`)
logWriter := bufio.NewWriter(&buf)
Expand Down

0 comments on commit 75e9943

Please sign in to comment.