diff --git a/client.go b/client.go index 10a8fdf..b26ca3e 100644 --- a/client.go +++ b/client.go @@ -5,6 +5,7 @@ import ( "go.dtapp.net/dorm" "go.dtapp.net/goip" "go.dtapp.net/golog" + "log" ) // client *dorm.GormClient @@ -122,6 +123,12 @@ func NewClient(config *ClientConfig) (*Client, error) { c.mongoCreateCollectionTask(ctx) c.mongoCreateIndexesTask(ctx) + } else { + return nil, mongoClientFunNoConfig + } + + if c.config.debug { + log.Printf("[gojobs]:%+v\n", c) } return c, nil diff --git a/const.go b/const.go index 0db82fd..12d3801 100644 --- a/const.go +++ b/const.go @@ -1,6 +1,6 @@ package gojobs const ( - Version = "1.0.86" + Version = "1.0.87" SpecifyIpNull = "0.0.0.0" )