Skip to content

Fix klog init#27

Merged
name212 merged 1 commit into
mainfrom
fix/klog-init
May 28, 2026
Merged

Fix klog init#27
name212 merged 1 commit into
mainfrom
fix/klog-init

Conversation

@YuryLysov
Copy link
Copy Markdown
Contributor

This is klog init fix, to prevent using direct output from klog to STDOUT/STDERR.

There is two types of errors, what doesn't handled by klog directly, but handled by k8s.io/apimachinery/pkg/util/runtime library ErrorHandlers and PanicHandlers. To prevent direct output, we should reinitialize this handlers and redirect output to our logger.

Signed-off-by: YuryLysov <yuriy.lysov@flant.com>
@YuryLysov YuryLysov requested a review from name212 as a code owner May 27, 2026 15:12
@YuryLysov YuryLysov self-assigned this May 28, 2026
@name212 name212 merged commit 1241e41 into main May 28, 2026
2 of 4 checks passed
@name212 name212 deleted the fix/klog-init branch May 28, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants