@@ -491,19 +491,19 @@ func (s *server) GetSchema(ctx context.Context, req *tfplugin5.GetProviderSchema
491491 defer logging .ProtocolTrace (ctx , "Served request" )
492492 r , err := fromproto .GetProviderSchemaRequest (req )
493493 if err != nil {
494- logging .ProtocolError (ctx , "Error converting request from protobuf" , "error" , err )
494+ logging .ProtocolError (ctx , "Error converting request from protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
495495 return nil , err
496496 }
497497 logging .ProtocolTrace (ctx , "Calling downstream" )
498498 resp , err := s .downstream .GetProviderSchema (ctx , r )
499499 if err != nil {
500- logging .ProtocolError (ctx , "Error from downstream" , "error" , err )
500+ logging .ProtocolError (ctx , "Error from downstream" , map [ string ] interface {}{ logging . KeyError : err } )
501501 return nil , err
502502 }
503503 logging .ProtocolTrace (ctx , "Called downstream" )
504504 ret , err := toproto .GetProviderSchema_Response (resp )
505505 if err != nil {
506- logging .ProtocolError (ctx , "Error converting response to protobuf" , "error" , err )
506+ logging .ProtocolError (ctx , "Error converting response to protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
507507 return nil , err
508508 }
509509 return ret , nil
@@ -518,21 +518,21 @@ func (s *server) PrepareProviderConfig(ctx context.Context, req *tfplugin5.Prepa
518518 defer logging .ProtocolTrace (ctx , "Served request" )
519519 r , err := fromproto .PrepareProviderConfigRequest (req )
520520 if err != nil {
521- logging .ProtocolError (ctx , "Error converting request from protobuf" , "error" , err )
521+ logging .ProtocolError (ctx , "Error converting request from protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
522522 return nil , err
523523 }
524524 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Request" , "Config" , r .Config )
525525 logging .ProtocolTrace (ctx , "Calling downstream" )
526526 resp , err := s .downstream .PrepareProviderConfig (ctx , r )
527527 if err != nil {
528- logging .ProtocolError (ctx , "Error from downstream" , "error" , err )
528+ logging .ProtocolError (ctx , "Error from downstream" , map [ string ] interface {}{ logging . KeyError : err } )
529529 return nil , err
530530 }
531531 logging .ProtocolTrace (ctx , "Called downstream" )
532532 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Response" , "PreparedConfig" , resp .PreparedConfig )
533533 ret , err := toproto .PrepareProviderConfig_Response (resp )
534534 if err != nil {
535- logging .ProtocolError (ctx , "Error converting response to protobuf" , "error" , err )
535+ logging .ProtocolError (ctx , "Error converting response to protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
536536 return nil , err
537537 }
538538 return ret , nil
@@ -547,20 +547,20 @@ func (s *server) Configure(ctx context.Context, req *tfplugin5.Configure_Request
547547 defer logging .ProtocolTrace (ctx , "Served request" )
548548 r , err := fromproto .ConfigureProviderRequest (req )
549549 if err != nil {
550- logging .ProtocolError (ctx , "Error converting request from protobuf" , "error" , err )
550+ logging .ProtocolError (ctx , "Error converting request from protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
551551 return nil , err
552552 }
553553 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Request" , "Config" , r .Config )
554554 logging .ProtocolTrace (ctx , "Calling downstream" )
555555 resp , err := s .downstream .ConfigureProvider (ctx , r )
556556 if err != nil {
557- logging .ProtocolError (ctx , "Error from downstream" , "error" , err )
557+ logging .ProtocolError (ctx , "Error from downstream" , map [ string ] interface {}{ logging . KeyError : err } )
558558 return nil , err
559559 }
560560 logging .ProtocolTrace (ctx , "Called downstream" )
561561 ret , err := toproto .Configure_Response (resp )
562562 if err != nil {
563- logging .ProtocolError (ctx , "Error converting response to protobuf" , "error" , err )
563+ logging .ProtocolError (ctx , "Error converting response to protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
564564 return nil , err
565565 }
566566 return ret , nil
@@ -588,13 +588,13 @@ func (s *server) Stop(ctx context.Context, req *tfplugin5.Stop_Request) (*tfplug
588588 defer logging .ProtocolTrace (ctx , "Served request" )
589589 r , err := fromproto .StopProviderRequest (req )
590590 if err != nil {
591- logging .ProtocolError (ctx , "Error converting request from protobuf" , "error" , err )
591+ logging .ProtocolError (ctx , "Error converting request from protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
592592 return nil , err
593593 }
594594 logging .ProtocolTrace (ctx , "Calling downstream" )
595595 resp , err := s .downstream .StopProvider (ctx , r )
596596 if err != nil {
597- logging .ProtocolError (ctx , "Error from downstream" , "error" , err )
597+ logging .ProtocolError (ctx , "Error from downstream" , map [ string ] interface {}{ logging . KeyError : err } )
598598 return nil , err
599599 }
600600 logging .ProtocolTrace (ctx , "Called downstream" )
@@ -603,7 +603,7 @@ func (s *server) Stop(ctx context.Context, req *tfplugin5.Stop_Request) (*tfplug
603603 logging .ProtocolTrace (ctx , "Closed all our contexts" )
604604 ret , err := toproto .Stop_Response (resp )
605605 if err != nil {
606- logging .ProtocolError (ctx , "Error converting response to protobuf" , "error" , err )
606+ logging .ProtocolError (ctx , "Error converting response to protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
607607 return nil , err
608608 }
609609 return ret , nil
@@ -619,20 +619,20 @@ func (s *server) ValidateDataSourceConfig(ctx context.Context, req *tfplugin5.Va
619619 defer logging .ProtocolTrace (ctx , "Served request" )
620620 r , err := fromproto .ValidateDataSourceConfigRequest (req )
621621 if err != nil {
622- logging .ProtocolError (ctx , "Error converting request from protobuf" , "error" , err )
622+ logging .ProtocolError (ctx , "Error converting request from protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
623623 return nil , err
624624 }
625625 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Request" , "Config" , r .Config )
626626 logging .ProtocolTrace (ctx , "Calling downstream" )
627627 resp , err := s .downstream .ValidateDataSourceConfig (ctx , r )
628628 if err != nil {
629- logging .ProtocolError (ctx , "Error from downstream" , "error" , err )
629+ logging .ProtocolError (ctx , "Error from downstream" , map [ string ] interface {}{ logging . KeyError : err } )
630630 return nil , err
631631 }
632632 logging .ProtocolTrace (ctx , "Called downstream" )
633633 ret , err := toproto .ValidateDataSourceConfig_Response (resp )
634634 if err != nil {
635- logging .ProtocolError (ctx , "Error converting response to protobuf" , "error" , err )
635+ logging .ProtocolError (ctx , "Error converting response to protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
636636 return nil , err
637637 }
638638 return ret , nil
@@ -648,22 +648,22 @@ func (s *server) ReadDataSource(ctx context.Context, req *tfplugin5.ReadDataSour
648648 defer logging .ProtocolTrace (ctx , "Served request" )
649649 r , err := fromproto .ReadDataSourceRequest (req )
650650 if err != nil {
651- logging .ProtocolError (ctx , "Error converting request from protobuf" , "error" , err )
651+ logging .ProtocolError (ctx , "Error converting request from protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
652652 return nil , err
653653 }
654654 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Request" , "Config" , r .Config )
655655 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Request" , "ProviderMeta" , r .ProviderMeta )
656656 logging .ProtocolTrace (ctx , "Calling downstream" )
657657 resp , err := s .downstream .ReadDataSource (ctx , r )
658658 if err != nil {
659- logging .ProtocolError (ctx , "Error from downstream" , "error" , err )
659+ logging .ProtocolError (ctx , "Error from downstream" , map [ string ] interface {}{ logging . KeyError : err } )
660660 return nil , err
661661 }
662662 logging .ProtocolTrace (ctx , "Called downstream" )
663663 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Response" , "State" , resp .State )
664664 ret , err := toproto .ReadDataSource_Response (resp )
665665 if err != nil {
666- logging .ProtocolError (ctx , "Error converting response to protobuf" , "error" , err )
666+ logging .ProtocolError (ctx , "Error converting response to protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
667667 return nil , err
668668 }
669669 return ret , nil
@@ -679,20 +679,20 @@ func (s *server) ValidateResourceTypeConfig(ctx context.Context, req *tfplugin5.
679679 defer logging .ProtocolTrace (ctx , "Served request" )
680680 r , err := fromproto .ValidateResourceTypeConfigRequest (req )
681681 if err != nil {
682- logging .ProtocolError (ctx , "Error converting request from protobuf" , "error" , err )
682+ logging .ProtocolError (ctx , "Error converting request from protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
683683 return nil , err
684684 }
685685 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Request" , "Config" , r .Config )
686686 logging .ProtocolTrace (ctx , "Calling downstream" )
687687 resp , err := s .downstream .ValidateResourceTypeConfig (ctx , r )
688688 if err != nil {
689- logging .ProtocolError (ctx , "Error from downstream" , "error" , err )
689+ logging .ProtocolError (ctx , "Error from downstream" , map [ string ] interface {}{ logging . KeyError : err } )
690690 return nil , err
691691 }
692692 logging .ProtocolTrace (ctx , "Called downstream" )
693693 ret , err := toproto .ValidateResourceTypeConfig_Response (resp )
694694 if err != nil {
695- logging .ProtocolError (ctx , "Error converting response to protobuf" , "error" , err )
695+ logging .ProtocolError (ctx , "Error converting response to protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
696696 return nil , err
697697 }
698698 return ret , nil
@@ -708,20 +708,20 @@ func (s *server) UpgradeResourceState(ctx context.Context, req *tfplugin5.Upgrad
708708 defer logging .ProtocolTrace (ctx , "Served request" )
709709 r , err := fromproto .UpgradeResourceStateRequest (req )
710710 if err != nil {
711- logging .ProtocolError (ctx , "Error converting request from protobuf" , "error" , err )
711+ logging .ProtocolError (ctx , "Error converting request from protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
712712 return nil , err
713713 }
714714 logging .ProtocolTrace (ctx , "Calling downstream" )
715715 resp , err := s .downstream .UpgradeResourceState (ctx , r )
716716 if err != nil {
717- logging .ProtocolError (ctx , "Error from downstream" , "error" , err )
717+ logging .ProtocolError (ctx , "Error from downstream" , map [ string ] interface {}{ logging . KeyError : err } )
718718 return nil , err
719719 }
720720 logging .ProtocolTrace (ctx , "Called downstream" )
721721 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Response" , "UpgradedState" , resp .UpgradedState )
722722 ret , err := toproto .UpgradeResourceState_Response (resp )
723723 if err != nil {
724- logging .ProtocolError (ctx , "Error converting response to protobuf" , "error" , err )
724+ logging .ProtocolError (ctx , "Error converting response to protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
725725 return nil , err
726726 }
727727 return ret , nil
@@ -737,22 +737,22 @@ func (s *server) ReadResource(ctx context.Context, req *tfplugin5.ReadResource_R
737737 defer logging .ProtocolTrace (ctx , "Served request" )
738738 r , err := fromproto .ReadResourceRequest (req )
739739 if err != nil {
740- logging .ProtocolError (ctx , "Error converting request from protobuf" , "error" , err )
740+ logging .ProtocolError (ctx , "Error converting request from protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
741741 return nil , err
742742 }
743743 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Request" , "CurrentState" , r .CurrentState )
744744 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Request" , "ProviderMeta" , r .ProviderMeta )
745745 logging .ProtocolTrace (ctx , "Calling downstream" )
746746 resp , err := s .downstream .ReadResource (ctx , r )
747747 if err != nil {
748- logging .ProtocolError (ctx , "Error from downstream" , "error" , err )
748+ logging .ProtocolError (ctx , "Error from downstream" , map [ string ] interface {}{ logging . KeyError : err } )
749749 return nil , err
750750 }
751751 logging .ProtocolTrace (ctx , "Called downstream" )
752752 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Response" , "NewState" , resp .NewState )
753753 ret , err := toproto .ReadResource_Response (resp )
754754 if err != nil {
755- logging .ProtocolError (ctx , "Error converting response to protobuf" , "error" , err )
755+ logging .ProtocolError (ctx , "Error converting response to protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
756756 return nil , err
757757 }
758758 return ret , nil
@@ -768,7 +768,7 @@ func (s *server) PlanResourceChange(ctx context.Context, req *tfplugin5.PlanReso
768768 defer logging .ProtocolTrace (ctx , "Served request" )
769769 r , err := fromproto .PlanResourceChangeRequest (req )
770770 if err != nil {
771- logging .ProtocolError (ctx , "Error converting request from protobuf" , "error" , err )
771+ logging .ProtocolError (ctx , "Error converting request from protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
772772 return nil , err
773773 }
774774 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Request" , "Config" , r .Config )
@@ -778,14 +778,14 @@ func (s *server) PlanResourceChange(ctx context.Context, req *tfplugin5.PlanReso
778778 logging .ProtocolTrace (ctx , "Calling downstream" )
779779 resp , err := s .downstream .PlanResourceChange (ctx , r )
780780 if err != nil {
781- logging .ProtocolError (ctx , "Error from downstream" , "error" , err )
781+ logging .ProtocolError (ctx , "Error from downstream" , map [ string ] interface {}{ logging . KeyError : err } )
782782 return nil , err
783783 }
784784 logging .ProtocolTrace (ctx , "Called downstream" )
785785 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Response" , "PlannedState" , resp .PlannedState )
786786 ret , err := toproto .PlanResourceChange_Response (resp )
787787 if err != nil {
788- logging .ProtocolError (ctx , "Error converting response to protobuf" , "error" , err )
788+ logging .ProtocolError (ctx , "Error converting response to protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
789789 return nil , err
790790 }
791791 return ret , nil
@@ -801,7 +801,7 @@ func (s *server) ApplyResourceChange(ctx context.Context, req *tfplugin5.ApplyRe
801801 defer logging .ProtocolTrace (ctx , "Served request" )
802802 r , err := fromproto .ApplyResourceChangeRequest (req )
803803 if err != nil {
804- logging .ProtocolError (ctx , "Error converting request from protobuf" , "error" , err )
804+ logging .ProtocolError (ctx , "Error converting request from protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
805805 return nil , err
806806 }
807807 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Request" , "Config" , r .Config )
@@ -811,14 +811,14 @@ func (s *server) ApplyResourceChange(ctx context.Context, req *tfplugin5.ApplyRe
811811 logging .ProtocolTrace (ctx , "Calling downstream" )
812812 resp , err := s .downstream .ApplyResourceChange (ctx , r )
813813 if err != nil {
814- logging .ProtocolError (ctx , "Error from downstream" , "error" , err )
814+ logging .ProtocolError (ctx , "Error from downstream" , map [ string ] interface {}{ logging . KeyError : err } )
815815 return nil , err
816816 }
817817 logging .ProtocolTrace (ctx , "Called downstream" )
818818 logging .ProtocolData (ctx , s .protocolDataDir , rpc , "Response" , "NewState" , resp .NewState )
819819 ret , err := toproto .ApplyResourceChange_Response (resp )
820820 if err != nil {
821- logging .ProtocolError (ctx , "Error converting response to protobuf" , "error" , err )
821+ logging .ProtocolError (ctx , "Error converting response to protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
822822 return nil , err
823823 }
824824 return ret , nil
@@ -834,13 +834,13 @@ func (s *server) ImportResourceState(ctx context.Context, req *tfplugin5.ImportR
834834 defer logging .ProtocolTrace (ctx , "Served request" )
835835 r , err := fromproto .ImportResourceStateRequest (req )
836836 if err != nil {
837- logging .ProtocolError (ctx , "Error converting request from protobuf" , "error" , err )
837+ logging .ProtocolError (ctx , "Error converting request from protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
838838 return nil , err
839839 }
840840 logging .ProtocolTrace (ctx , "Calling downstream" )
841841 resp , err := s .downstream .ImportResourceState (ctx , r )
842842 if err != nil {
843- logging .ProtocolError (ctx , "Error from downstream" , "error" , err )
843+ logging .ProtocolError (ctx , "Error from downstream" , map [ string ] interface {}{ logging . KeyError : err } )
844844 return nil , err
845845 }
846846 logging .ProtocolTrace (ctx , "Called downstream" )
@@ -849,7 +849,7 @@ func (s *server) ImportResourceState(ctx context.Context, req *tfplugin5.ImportR
849849 }
850850 ret , err := toproto .ImportResourceState_Response (resp )
851851 if err != nil {
852- logging .ProtocolError (ctx , "Error converting response to protobuf" , "error" , err )
852+ logging .ProtocolError (ctx , "Error converting response to protobuf" , map [ string ] interface {}{ logging . KeyError : err } )
853853 return nil , err
854854 }
855855 return ret , nil
0 commit comments