From dbb410830799875d50fa3d48f9df95193ce9ced3 Mon Sep 17 00:00:00 2001 From: Viktor Farcic Date: Sun, 30 Dec 2018 14:48:05 +0100 Subject: [PATCH] Added dependencies --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index e24ed53ab..b49e9ad4d 100644 --- a/main.go +++ b/main.go @@ -41,6 +41,7 @@ var ( ) func main() { + logPrintf("Starting the application\n") if len(os.Getenv("SERVICE_NAME")) > 0 { serviceName = os.Getenv("SERVICE_NAME") } @@ -63,6 +64,7 @@ func setupDb() { if len(db) == 0 { db = "localhost" } + logPrintf("Configuring DB %s\n", db) session, err := mgo.Dial(db) if err != nil { panic(err) @@ -71,6 +73,7 @@ func setupDb() { } func RunServer() { + logPrintf("Running the server\n") mux := http.NewServeMux() mux.HandleFunc("/demo/hello", HelloServer) mux.HandleFunc("/demo/person", PersonServer)