Skip to content

Commit

Permalink
added panic call
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangB33r committed Jun 26, 2019
1 parent 871fa37 commit 1ab4a4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service.go
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"math/rand"
"net/http"
"os"
Expand Down Expand Up @@ -85,7 +84,8 @@ func sayHello(w http.ResponseWriter, r *http.Request) {
}
// then check if we should crash the process
if conf.CrashConfig.Code != 0 {
log.Fatalf("Exiting")
//log.Fatalf("Exiting")
panic("a problem")
//os.Exit(conf.CrashConfig.Code)
}
// then check if we should add a delay
Expand Down

0 comments on commit 1ab4a4d

Please sign in to comment.