From 84a1c4bdaf88da56b9a42a78f8127e9f0746a8c3 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Thu, 12 Jan 2023 11:34:21 +0100 Subject: [PATCH] fix wrong vartype for log --- internal/repository/job.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/repository/job.go b/internal/repository/job.go index 7cf62c7..6fba749 100644 --- a/internal/repository/job.go +++ b/internal/repository/job.go @@ -456,7 +456,7 @@ func (r *JobRepository) FindUser(ctx context.Context, searchterm string) (userna return "", ErrNotFound } else { - log.Infof("Non-Admin User %s : Requested Query Username -> %s: Forbidden", user, username) + log.Infof("Non-Admin User %s : Requested Query Username -> %s: Forbidden", user.Name, username) return "", ErrForbidden } } @@ -475,7 +475,7 @@ func (r *JobRepository) FindProject(ctx context.Context, searchterm string) (pro return "", ErrNotFound } else { - log.Infof("Non-Admin User %s : Requested Query Project -> %s: Forbidden", user, project) + log.Infof("Non-Admin User %s : Requested Query Project -> %s: Forbidden", user.Name, project) return "", ErrForbidden } }