Skip to content

Commit 71e4a76

Browse files
committed
Mongodb connected message
1 parent 245e162 commit 71e4a76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

link.go

+4
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ func (l *Link) notifyConnection() {
6262
if l.options.reconnectionAttemptsLimitMinutes > 0 {
6363
l.options.lastConnection = time.Now()
6464
}
65+
66+
if l.options.printLogMessages {
67+
log.Println("mongodb connected")
68+
}
6569
}
6670

6771
// log print log message if allowed by programmer in options

0 commit comments

Comments
 (0)