mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-10-29 19:52:04 +08:00
add arbitrary condition query api
This commit is contained in:
@@ -32,11 +32,14 @@ func Config() {
|
||||
cfg := config.Get()
|
||||
|
||||
// initializing log
|
||||
_, _ = logger.Init(
|
||||
_, err := logger.Init(
|
||||
logger.WithLevel(cfg.Logger.Level),
|
||||
logger.WithFormat(cfg.Logger.Format),
|
||||
logger.WithSave(cfg.Logger.IsSave),
|
||||
)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// initializing database
|
||||
model.InitMysql()
|
||||
|
||||
Reference in New Issue
Block a user