File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ func CreateNewDBConnection() bool {
33
33
34
34
client , err := mongo .Connect (ctx , clientOpts )
35
35
if err != nil {
36
- log .Error ("MongoDb connection drop........ :" , err )
36
+ log .Error ("MongoDb connection drop:" , err )
37
37
return false
38
38
}
39
39
Client = client
40
- log .Info ("Database is connected:::::::: " )
40
+ log .Info ("Database is connected" )
41
41
return Ping ()
42
42
}
43
43
func reconnect (client * mongo.Client ) {
@@ -71,7 +71,7 @@ func (cm *customermongodb) ConnectToMongoDB() *mongo.Database {
71
71
func DisconnectToMongoDB () {
72
72
defer func () {
73
73
if err := Client .Disconnect (ctxb ); err != nil {
74
- log .Error ("DB Disconnector break due to address port ....: " , err )
74
+ log .Error ("DB Disconnector break due to address port" , err )
75
75
}
76
76
}()
77
77
You can’t perform that action at this time.
0 commit comments