diff options
author | Emile <hanemile@protonmail.com> | 2019-11-03 18:07:28 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-11-03 18:07:28 +0100 |
commit | 79244e7df141a416c803b4f7d15819228ec610c5 (patch) | |
tree | 077a66739155175db83c6fd0665800a3a9cee54a /src/http.go | |
parent | d93cbbed938d318abdee405ef29f77a5fe9c3f4a (diff) |
verbose
Diffstat (limited to 'src/http.go')
-rw-r--r-- | src/http.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/http.go b/src/http.go index f2518f6..d309791 100644 --- a/src/http.go +++ b/src/http.go @@ -30,13 +30,17 @@ func indexHandler(w http.ResponseWriter, r *http.Request) { func httpStartServer() { if httpServerPort != 8080 { - log.Printf("%s Starting the http server", green("[i]")) + if verbose == true { + log.Printf("%s Starting the http server", green("[i]")) + } // setup the http server and start it httpServer := setupHTTPServer() log.Fatalln(httpServer.ListenAndServe()) - log.Printf("%s Done starting the http server", boldGreen("[+]")) + if verbose == true { + log.Printf("%s Done starting the http server", boldGreen("[+]")) + } } else { return } |