From 42d6cd44bb09ce15ef304314a9f6b3ca432284b3 Mon Sep 17 00:00:00 2001 From: Jonathan Lestrelin Date: Tue, 15 Oct 2019 18:44:50 +0200 Subject: [PATCH] Fix db user id type in shell connection log. --- pkg/bastion/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/bastion/ssh.go b/pkg/bastion/ssh.go index 3b2f93e..fae64d1 100644 --- a/pkg/bastion/ssh.go +++ b/pkg/bastion/ssh.go @@ -223,7 +223,7 @@ func bastionClientConfig(ctx ssh.Context, host *dbmodels.Host) (*gossh.ClientCon func ShellHandler(s ssh.Session, version, gitSha, gitTag, gitBranch string) { actx := s.Context().Value(authContextKey).(*authContext) if actx.userType() != userTypeHealthcheck { - log.Printf("New connection(shell): sshUser=%q remote=%q local=%q command=%q dbUser=id:%q,email:%s", s.User(), s.RemoteAddr(), s.LocalAddr(), s.Command(), actx.user.ID, actx.user.Email) + log.Printf("New connection(shell): sshUser=%q remote=%q local=%q command=%q dbUser=id:%d,email:%s", s.User(), s.RemoteAddr(), s.LocalAddr(), s.Command(), actx.user.ID, actx.user.Email) } if actx.err != nil {