Remove debug logs

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-03-11 10:08:35 +01:00
parent f674426dfa
commit 764f61bfa7

View File

@@ -448,30 +448,8 @@ func (s *Service) PatchUser(
profileID gid.GID,
operations []scim.PatchOperation,
) (scim.Resource, error) {
for i, op := range operations {
path := "<nil>"
if op.Path != nil {
path = op.Path.String()
}
s.logger.InfoCtx(ctx, "SCIM PATCH operation",
log.String("op_index", fmt.Sprintf("%d", i)),
log.String("op", op.Op),
log.String("path", path),
log.String("value_type", fmt.Sprintf("%T", op.Value)),
log.String("value", fmt.Sprintf("%v", op.Value)),
)
}
attrs := ParseUserFromPatchOperations(operations)
s.logger.InfoCtx(ctx, "SCIM PATCH parsed attributes",
log.String("given_name", fmt.Sprintf("%v", attrs.GivenName)),
log.String("family_name", fmt.Sprintf("%v", attrs.FamilyName)),
log.String("formatted_name", fmt.Sprintf("%v", attrs.FormattedName)),
log.String("employee_number", fmt.Sprintf("%v", attrs.EmployeeNumber)),
log.String("department", fmt.Sprintf("%v", attrs.Department)),
)
profile, err := s.updateUser(ctx, config, profileID, attrs)
if err != nil {
return scim.Resource{}, err