Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Hepto
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACIDES
Hepto
Commits
83b37c0c
Commit
83b37c0c
authored
1 year ago
by
kaiyou
Browse files
Options
Downloads
Patches
Plain Diff
Improve k8s logging
parent
b8813008
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
services/k8s.go
+5
-5
5 additions, 5 deletions
services/k8s.go
with
5 additions
and
5 deletions
services/k8s.go
+
5
−
5
View file @
83b37c0c
...
@@ -22,11 +22,11 @@ import (
...
@@ -22,11 +22,11 @@ import (
var
kubeLogger
=
&
Unit
{
var
kubeLogger
=
&
Unit
{
Name
:
"kube-logger"
,
Name
:
"kube-logger"
,
Start
:
func
(
u
*
Unit
,
c
*
Cluster
,
ctx
context
.
Context
)
error
{
Start
:
func
(
u
*
Unit
,
c
*
Cluster
,
ctx
context
.
Context
)
error
{
// Max out verbosity, which will get filtered later by logr
// Max out verbosity, which will get filtered later by logr
// This is kind of hacky, yet it is the only public interface to alter
// This is kind of hacky, yet it is the only public interface to alter
// klog internal filtering levels
// klog internal filtering levels
var
max
klog
.
Level
var
max
klog
.
Level
max
.
Set
(
fmt
.
Sprint
(
9
))
max
.
Set
(
fmt
.
Sprint
(
9
))
klog
.
SetLogger
(
u
.
Manager
.
Logger
)
klog
.
SetLogger
(
u
.
Manager
.
Logger
)
return
nil
return
nil
},
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment