-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testenv: Allow klog and glog to coexist
This change allows test environments with glog to work with testenv. The logger initialization is moved from init() to a separate function that's called when a new testenv Environment is created. This allows a user to set their custom logger to the controller-runtime logger before creating testenv because the controller-runtime deferred logger can only be set once. Signed-off-by: Sunny <darkowlzz@protonmail.com>
- Loading branch information
Showing
1 changed file
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters