|
@@ -41,7 +41,7 @@ func (s *Protocol) GetSoftwareInfo() *pb.SoftwareInfoReply {
|
|
|
slog.Info("[rpc]SoftwareInfo...")
|
|
|
r, err := s.basicClient.SoftwareInfo(context.Background(), &pb.EmptyRequest{})
|
|
|
if err != nil {
|
|
|
- slog.Error("[rpc]SoftwareInfo failed:", err)
|
|
|
+ slog.Error("[rpc]SoftwareInfo failed", "err", err)
|
|
|
return &pb.SoftwareInfoReply{
|
|
|
Module: "",
|
|
|
Desc: "",
|
|
@@ -58,7 +58,7 @@ func (s *Protocol) GetPatientType(ctx context.Context, isEnabled *bool) (*pb.Pat
|
|
|
IsEnabled: isEnabled,
|
|
|
})
|
|
|
if err != nil {
|
|
|
- slog.Error("[rpc]GetPatientType failed:", err)
|
|
|
+ slog.Error("[rpc]GetPatientType failed", "err", err)
|
|
|
}
|
|
|
slog.Info("[rpc]GetPatientType result:", "rows", len(r.PatientTypeList))
|
|
|
return r, err
|
|
@@ -72,7 +72,7 @@ func (s *Protocol) GetBodyPart(ctx context.Context, patientType *string, modalit
|
|
|
IsEnabled: isEnabled,
|
|
|
})
|
|
|
if err != nil {
|
|
|
- slog.Error("[rpc]GetPatientType failed:", err)
|
|
|
+ slog.Error("[rpc]GetBodyPart failed", "err", err)
|
|
|
}
|
|
|
return r, err
|
|
|
}
|
|
@@ -85,7 +85,7 @@ func (s *Protocol) GetProcedure(ctx context.Context, patientType *string, bodyPa
|
|
|
IsEnabled: isEnabled,
|
|
|
})
|
|
|
if err != nil {
|
|
|
- slog.Error("[rpc]GetProcedure failed:", err)
|
|
|
+ slog.Error("[rpc]GetProcedure failed", "err", err)
|
|
|
}
|
|
|
return r, err
|
|
|
}
|
|
@@ -99,7 +99,7 @@ func (s *Protocol) GetView(ctx context.Context, patientType *string, bodyPart *s
|
|
|
IsEnabled: isEnabled,
|
|
|
})
|
|
|
if err != nil {
|
|
|
- slog.Error("[rpc]GetView failed:", err)
|
|
|
+ slog.Error("[rpc]GetView failed", "err", err)
|
|
|
}
|
|
|
return r, err
|
|
|
}
|