Start implementing a logger

This commit is contained in:
2024-05-06 17:30:35 +02:00
parent 40fd1d5300
commit 557b4dce44
2 changed files with 10 additions and 8 deletions

View File

@ -192,8 +192,8 @@ func (e *EnvironmentsServer) Get(ctx context.Context, in *proto.GetOptions) (*pr
}
func (e *EnvironmentsServer) List(in *proto.ListOptions, stream proto.Environments_ListServer) error {
log := e.logInstance
log.WithValues("user_id", in.GetOwnerId().GetUuid())
logInstance := e.logInstance
log := logInstance.WithValues("user_id", in.GetOwnerId().GetUuid())
ctx := logr.NewContext(stream.Context(), log)
environment := &controllers.Environemnt{