init logger
This commit is contained in:
		
							parent
							
								
									ba3b0104ff
								
							
						
					
					
						commit
						79b32fa209
					
				| 
						 | 
					@ -4,6 +4,7 @@ import (
 | 
				
			||||||
	"errors"
 | 
						"errors"
 | 
				
			||||||
	"fmt"
 | 
						"fmt"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						"github.com/Selly-Modules/logger"
 | 
				
			||||||
	"github.com/Selly-Modules/mongodb"
 | 
						"github.com/Selly-Modules/mongodb"
 | 
				
			||||||
	"github.com/Selly-Modules/usermngmt/cache"
 | 
						"github.com/Selly-Modules/usermngmt/cache"
 | 
				
			||||||
	"github.com/Selly-Modules/usermngmt/database"
 | 
						"github.com/Selly-Modules/usermngmt/database"
 | 
				
			||||||
| 
						 | 
					@ -55,6 +56,8 @@ func Init(config Config) (*Service, error) {
 | 
				
			||||||
		return nil, err
 | 
							return nil, err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						logger.Init("usermngmt", "")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Set database
 | 
						// Set database
 | 
				
			||||||
	database.Set(db, config.TablePrefix)
 | 
						database.Set(db, config.TablePrefix)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue