aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--caronte.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/caronte.go b/caronte.go
index 95f00ef..da65e9b 100644
--- a/caronte.go
+++ b/caronte.go
@@ -20,6 +20,7 @@ package main
import (
"flag"
"fmt"
+
log "github.com/sirupsen/logrus"
)
@@ -36,6 +37,7 @@ func main() {
flag.Parse()
logFields := log.Fields{"host": *mongoHost, "port": *mongoPort, "dbName": *dbName}
+ log.WithFields(logFields).Debug("connecting to MongoDB")
storage, err := NewMongoStorage(*mongoHost, *mongoPort, *dbName)
if err != nil {
log.WithError(err).WithFields(logFields).Fatal("failed to connect to MongoDB")