Skip to content

Commit

Permalink
Make warning message more readable for bigger deployments
Browse files Browse the repository at this point in the history
In cases, when gofalcon is part of greater integration, it may not be obvious
that the log message is coming out of gofalcon.
  • Loading branch information
isimluk committed Oct 19, 2021
1 parent 2103c09 commit 3976ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion falcon/api_client.go
Expand Up @@ -48,7 +48,7 @@ func (rt *roundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
req.Header.Add("User-Agent", userAgent)

if rt.LastRateLimitDigits == 1 || rt.LastRateLimitDigits == 2 {
log.Debug("Approaching API rate limits. Waiting 500 millisecond.")
log.Debug("Approaching CrowdStrike API rate limits. Waiting 500 millisecond.")
time.Sleep(500 * time.Millisecond)
}
response, err := rt.T.RoundTrip(req)
Expand Down

0 comments on commit 3976ebf

Please sign in to comment.