Skip to content

Commit d376b81

Browse files
committed
Add more log informations for settings
1 parent 111eb7d commit d376b81

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

main.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ func main() {
8181

8282
Logger.Infof("Init Azure DevOps exporter v%s (written by %v)", Version, Author)
8383

84-
Logger.Infof("Init Azure connection")
85-
initAzureConnection()
84+
Logger.Infof("Init AzureDevOps connection")
85+
initAzureDevOpsConnection()
8686

8787
Logger.Info("Starting metrics collection")
8888
Logger.Infof("set scape interval[Default]: %v", scrapeIntervalStatus(&opts.ScrapeTime))
@@ -161,12 +161,17 @@ func initArgparser() {
161161
}
162162

163163
// Init and build Azure authorzier
164-
func initAzureConnection() {
164+
func initAzureDevOpsConnection() {
165165
AzureDevopsClient = AzureDevops.NewAzureDevopsClient()
166166
if opts.AzureDevopsUrl != nil {
167167
AzureDevopsClient.HostUrl = opts.AzureDevopsUrl
168168
}
169169

170+
Logger.Infof("using organization: %v", opts.AzureDevopsOrganisation)
171+
Logger.Infof("using apiversion: %v", opts.AzureDevopsApiVersion)
172+
Logger.Infof("using concurrency: %v", opts.RequestConcurrencyLimit)
173+
Logger.Infof("using retries: %v", opts.RequestRetries)
174+
170175
AzureDevopsClient.SetOrganization(opts.AzureDevopsOrganisation)
171176
AzureDevopsClient.SetAccessToken(opts.AzureDevopsAccessToken)
172177
AzureDevopsClient.SetApiVersion(opts.AzureDevopsApiVersion)

0 commit comments

Comments
 (0)