Skip to content

Commit

Permalink
chore: Camel case log fields
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Sep 3, 2024
1 parent c25b31b commit dd2b6b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/server/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (s *SSHServer) Handler(m *movie.Movie) bubbletea.Handler {
return func(session ssh.Session) (tea.Model, []tea.ProgramOption) {
remoteIP := RemoteIP(session.RemoteAddr().String())
logger := s.Log.With(
"remote_ip", remoteIP,
"remoteIP", remoteIP,
"user", session.User(),
)

Expand Down Expand Up @@ -155,7 +155,7 @@ func (s *SSHServer) TrackStream(handler ssh.Handler) ssh.Handler {
id, err := serverInfo.StreamConnect("ssh", remoteIP)
if err != nil {
s.Log.Error("Failed to begin stream",
"remote_ip", remoteIP,
"remoteIP", remoteIP,
"user", session.User(),
)
_, _ = session.Write([]byte(ErrorText(err) + "\n"))
Expand Down
2 changes: 1 addition & 1 deletion internal/server/telnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (s *TelnetServer) Handler(ctx context.Context, conn net.Conn, m *movie.Movi
}(conn)

remoteIP := RemoteIP(conn.RemoteAddr().String())
logger := s.Log.With("remote_ip", remoteIP)
logger := s.Log.With("remoteIP", remoteIP)

id, err := serverInfo.StreamConnect("telnet", remoteIP)
if err != nil {
Expand Down

0 comments on commit dd2b6b8

Please sign in to comment.