Skip to content

Commit

Permalink
fix: remove redundant log fields in ssh-portal-api
Browse files Browse the repository at this point in the history
  • Loading branch information
smlx committed Jan 16, 2024
1 parent 7847400 commit cb59187
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/sshportalapi/sshportal.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ func sshportal(ctx context.Context, log *slog.Logger, c *nats.EncodedConn,
slog.Any("userGroups", userGroups),
slog.Any("groupProjectIDs", groupProjectIDs),
slog.String("userUUID", user.UUID.String()),
slog.String("sessionID", query.SessionID),
)
// check permission
ok := p.UserCanSSHToEnvironment(ctx, env, realmRoles, userGroups,
Expand All @@ -128,11 +127,8 @@ func sshportal(ctx context.Context, log *slog.Logger, c *nats.EncodedConn,
log.Info(logMsg,
slog.Int("environmentID", env.ID),
slog.Int("projectID", env.ProjectID),
slog.String("SSHFingerprint", query.SSHFingerprint),
slog.String("environmentName", env.Name),
slog.String("namespace", query.NamespaceName),
slog.String("projectName", env.ProjectName),
slog.String("sessionID", query.SessionID),
slog.String("userUUID", user.UUID.String()),
)
if err = c.Publish(replySubject, ok); err != nil {
Expand Down

0 comments on commit cb59187

Please sign in to comment.