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
9211e038
Commit
9211e038
authored
Feb 27, 2017
by
Derek Carr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stop spamming logs on restart of api server
parent
7f626cf8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
etcd_helper.go
staging/src/k8s.io/apiserver/pkg/storage/etcd/etcd_helper.go
+3
-2
trace.go
staging/src/k8s.io/apiserver/pkg/util/trace/trace.go
+1
-1
No files found.
staging/src/k8s.io/apiserver/pkg/storage/etcd/etcd_helper.go
View file @
9211e038
...
...
@@ -380,11 +380,12 @@ func (h *etcdHelper) decodeNodeList(nodes []*etcd.Node, filter storage.FilterFun
}
for
_
,
node
:=
range
nodes
{
if
node
.
Dir
{
trace
.
Step
(
"Decoding dir "
+
node
.
Key
+
" START"
)
// IMPORTANT: do not log each key as a discrete step in the trace log
// as it produces an immense amount of log spam when there is a large
// amount of content in the list.
if
err
:=
h
.
decodeNodeList
(
node
.
Nodes
,
filter
,
slicePtr
);
err
!=
nil
{
return
err
}
trace
.
Step
(
"Decoding dir "
+
node
.
Key
+
" END"
)
continue
}
if
obj
,
found
:=
h
.
getFromCache
(
node
.
ModifiedIndex
,
filter
);
found
{
...
...
staging/src/k8s.io/apiserver/pkg/util/trace/trace.go
View file @
9211e038
...
...
@@ -57,7 +57,7 @@ func (t *Trace) Log() {
buffer
.
WriteString
(
fmt
.
Sprintf
(
"[%v] [%v] %v
\n
"
,
step
.
stepTime
.
Sub
(
t
.
startTime
),
step
.
stepTime
.
Sub
(
lastStepTime
),
step
.
msg
))
lastStepTime
=
step
.
stepTime
}
buffer
.
WriteString
(
fmt
.
Sprintf
(
"
[%v] [%v] END
\n
"
,
endTime
.
Sub
(
t
.
startTime
),
endTime
.
Sub
(
lastStepTime
)))
buffer
.
WriteString
(
fmt
.
Sprintf
(
"
%q [%v] [%v] END
\n
"
,
t
.
name
,
endTime
.
Sub
(
t
.
startTime
),
endTime
.
Sub
(
lastStepTime
)))
glog
.
Info
(
buffer
.
String
())
}
...
...
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