-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This automatically adds additional fields like reconcile_id etc.. from the controller context. before : 2023-05-18T01:53:14+03:00 INFO controllers.KeystoneAPI Reconciled Service init successfully after: 2023-10-04T16:06:31+03:00 INFO Controllers.CinderAPI Reconciled Service 'cinder-api' successfully {"controller": "cinderapi", "controllerGroup": "cinder.openstack.org", "controllerKind": "CinderAPI", "CinderAPI": {"name":"cinder-api","namespace":"openstack"}, "namespace": "openstack", "name": "cinder-api", "reconcileID": "09fed477-8ad5-4186-8b20-790f409de78a"} *by using per reconcile function respective logger objects, the intention is to lay the ground for parallel reconciliation in future and avoid race conditions as ctx objects are reconcile run specific. fix logging implementations update correct controller name use single controller name in top logger func set controler unique log func name fix log usage in scheduler add top level ctx use propogated ctx from main in controllers use struct method for same logger signiture in controllers use struct method for same logger signiture in controllers getlog->GetLogger sed log->Log update logging switch to structured logging This automatically adds additional fields like reconcile_id etc.. from the controller context. before : 2023-05-18T01:53:14+03:00 INFO controllers.KeystoneAPI Reconciled Service init successfully after: 2023-10-04T16:06:31+03:00 INFO Controllers.CinderAPI Reconciled Service 'cinder-api' successfully {"controller": "cinderapi", "controllerGroup": "cinder.openstack.org", "controllerKind": "CinderAPI", "CinderAPI": {"name":"cinder-api","namespace":"openstack"}, "namespace": "openstack", "name": "cinder-api", "reconcileID": "09fed477-8ad5-4186-8b20-790f409de78a"} *by using per reconcile function respective logger objects, the intention is to lay the ground for parallel reconciliation in future and avoid race conditions as ctx objects are reconcile run specific. fix logging implementations update correct controller name use single controller name in top logger func set controler unique log func name fix log usage in scheduler add top level ctx use propogated ctx from main in controllers use struct method for same logger signiture in controllers use struct method for same logger signiture in controllers getlog->GetLogger sed log->Log update logging Structured logging
- Loading branch information
1 parent
48a662e
commit 52d9e8d
Showing
6 changed files
with
224 additions
and
136 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
Oops, something went wrong.