fixing some old bugs
This commit is contained in:
@@ -309,10 +309,10 @@ func handleGetWorkflowqueue(resp http.ResponseWriter, request *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !found {
|
if !found {
|
||||||
log.Printf("[ERROR] Failed to find environment(%s) for org(%s)", environment, orgId)
|
env, err = shuffle.GetEnvironment(ctx, environment, "")
|
||||||
resp.WriteHeader(400)
|
if err != nil {
|
||||||
resp.Write([]byte(`{"success":false,"reason":"environment not found"}`))
|
log.Printf("[WARNING] Failed to find the environment(%s) in org(%s). Could cause with Failover test", environment, orgId)
|
||||||
return
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
timeNow := time.Now().Unix()
|
timeNow := time.Now().Unix()
|
||||||
|
|||||||
Reference in New Issue
Block a user