Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
7ad337a2
Commit
7ad337a2
authored
May 24, 2016
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #26170 from wojtek-t/log_requests_to_gce
Log requests to GCE
parents
5303794e
55fdc1c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
gce.go
pkg/cloudprovider/providers/gce/gce.go
+3
-0
No files found.
pkg/cloudprovider/providers/gce/gce.go
View file @
7ad337a2
...
...
@@ -118,7 +118,10 @@ type rateLimitedRoundTripper struct {
}
func
(
rl
*
rateLimitedRoundTripper
)
RoundTrip
(
req
*
http
.
Request
)
(
*
http
.
Response
,
error
)
{
startTime
:=
time
.
Now
()
rl
.
limiter
.
Accept
()
// TODO: Reduce verbosity once #26119 is fixed.
glog
.
V
(
0
)
.
Infof
(
"GCE api call: %s %s (throttled for %v)"
,
req
.
Method
,
req
.
URL
.
String
(),
time
.
Now
()
.
Sub
(
startTime
))
return
rl
.
rt
.
RoundTrip
(
req
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment