From 79244e7df141a416c803b4f7d15819228ec610c5 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 3 Nov 2019 18:07:28 +0100 Subject: verbose --- src/http.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/http.go') 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 } -- cgit 1.4.1