client添加log,输出api地址

This commit is contained in:
Pan Qiancheng 2025-04-30 15:54:24 +08:00
parent 5ce5812355
commit 09a0c46bc1
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import (
"time"
"bash_go_service/shared/pkg/constants"
"bash_go_service/shared/pkg/logger"
"github.com/spf13/viper"
)
@ -82,6 +83,8 @@ func NewClient(opts ...ClientOption) *Client {
opt(client)
}
logger.Debug("client baseURL : %s", client.baseURL)
return client
}