diff --git a/ee/query-service/dao/sqlite/auth.go b/ee/query-service/dao/sqlite/auth.go index c0c8290b6c..0e8115d04a 100644 --- a/ee/query-service/dao/sqlite/auth.go +++ b/ee/query-service/dao/sqlite/auth.go @@ -4,7 +4,6 @@ import ( "context" "fmt" "net/url" - "strings" "time" "github.com/SigNoz/signoz/ee/query-service/constants" @@ -162,12 +161,7 @@ func (m *modelDao) PrecheckLogin(ctx context.Context, email, sourceUrl string) ( // find domain from email orgDomain, apierr := m.GetDomainByEmail(ctx, email) if apierr != nil { - var emailDomain string - emailComponents := strings.Split(email, "@") - if len(emailComponents) > 0 { - emailDomain = emailComponents[1] - } - zap.L().Error("failed to get org domain from email", zap.String("emailDomain", emailDomain), zap.Error(apierr.ToError())) + zap.L().Error("failed to get org domain from email", zap.String("email", email), zap.Error(apierr.ToError())) return resp, apierr }