File tree 2 files changed +3
-2
lines changed
internal/apiserver/kolide
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ func run(log *logrus.Entry, cfg config.Config) error {
200
200
return fmt .Errorf ("kolide integration enabled but no kolide-api-token provided" )
201
201
}
202
202
203
- kolideClient = kolide .New (cfg .KolideApiToken )
203
+ kolideClient = kolide .New (cfg .KolideApiToken , log . WithField ( "component" , "kolide-client" ) )
204
204
err := kolideClient .RefreshCache (ctx )
205
205
if err != nil {
206
206
return fmt .Errorf ("initial kolide cache warmup: %w" , err )
Original file line number Diff line number Diff line change @@ -26,14 +26,15 @@ type client struct {
26
26
log logrus.FieldLogger
27
27
}
28
28
29
- func New (token string ) Client {
29
+ func New (token string , log logrus. FieldLogger ) Client {
30
30
return & client {
31
31
baseUrl : "https://k2.kolide.com/api/v0" ,
32
32
client : & http.Client {
33
33
Transport : NewTransport (token ),
34
34
},
35
35
checks : & Cache [uint64 , Check ]{},
36
36
devices : & Cache [string , Device ]{},
37
+ log : log ,
37
38
}
38
39
}
39
40
You can’t perform that action at this time.
0 commit comments