client添加log,输出api地址
This commit is contained in:
parent
5ce5812355
commit
09a0c46bc1
|
|
@ -8,6 +8,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"bash_go_service/shared/pkg/constants"
|
"bash_go_service/shared/pkg/constants"
|
||||||
|
"bash_go_service/shared/pkg/logger"
|
||||||
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
@ -82,6 +83,8 @@ func NewClient(opts ...ClientOption) *Client {
|
||||||
opt(client)
|
opt(client)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.Debug("client baseURL : %s", client.baseURL)
|
||||||
|
|
||||||
return client
|
return client
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue