-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e2e: debug logs for enable/disable, drpc and placement #1814
base: main
Are you sure you want to change the base?
Conversation
b3ebbcc
to
4c3a439
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to log always after the operation was done, but it is better to do incremental change as you did here, so lets focus on:
- change info level to debug
- use Debugf for formatting logs
- use namespace/name to refer to resources
- log changes e.g. annotation added/removed
When we finish with all logs, we can consider moving logs after the operation.
4c3a439
to
f9f05ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good!
f9f05ad
to
771e8e9
Compare
Move/update info logs to debug in EnableProtection DisableProtection for managed and discovered apps Signed-off-by: Parikshith <[email protected]>
Add debug logs for Create and delete ManagedClusterSetBinding, createPlacementManagedByRamen, CreatePlacement and DeletePlacement Signed-off-by: Parikshith <[email protected]>
771e8e9
to
6a668f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, but we are missing "Deleted" log for the drpc.
Add debug logs in create, delete, generate and wait drpc funcs Signed-off-by: Parikshith <[email protected]>
Replace zapcore.AddSync with zapcore.Lock for safe concurrent writes to logfile and console. Signed-off-by: Parikshith <[email protected]>
6a668f2
to
f837bbd
Compare
After log changesINFO Level Logs
DEBUG Level Logs
|
before/after logs.
Issue #1808