From c560a7537ab8eb5bf24468f03ec2210008a0c8fa Mon Sep 17 00:00:00 2001 From: spf13 Date: Fri, 26 Jul 2013 09:24:35 -0400 Subject: adding more verbose output to server functionality --- main.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 83239c2fa..d991646c5 100644 --- a/main.go +++ b/main.go @@ -112,6 +112,11 @@ func main() { } func serve(port string, config *hugolib.Config) { + + if config.Verbose { + fmt.Println("Serving pages from " + config.GetAbsPath(config.PublishDir)) + } + fmt.Println("Web Server is available at http://localhost:" + port) fmt.Println("Press ctrl+c to stop") panic(http.ListenAndServe(":"+port, http.FileServer(http.Dir(config.PublishDir)))) -- cgit v1.2.3