From adcd4879d93e6d298ff2644178bc47c1eb8d1da4 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Sun, 21 Jul 2024 12:47:18 -0700 Subject: Clean up logging --- hotline/file_transfer.go | 3 --- hotline/server.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'hotline') diff --git a/hotline/file_transfer.go b/hotline/file_transfer.go index 12725db..847c7fe 100644 --- a/hotline/file_transfer.go +++ b/hotline/file_transfer.go @@ -421,7 +421,6 @@ func DownloadFolderHandler(rwc io.ReadWriter, fullPath string, fileTransfer *Fil } subPath := path[basePathLen+1:] - rLogger.Debug("Sending fileheader", "i", i, "path", path, "fullFilePath", fullPath, "subPath", subPath, "IsDir", info.IsDir()) if i == 1 { return nil @@ -437,8 +436,6 @@ func DownloadFolderHandler(rwc io.ReadWriter, fullPath string, fileTransfer *Fil return err } - rLogger.Debug("Client folder download action", "action", fmt.Sprintf("%X", nextAction[0:2])) - var dataOffset int64 switch nextAction[1] { diff --git a/hotline/server.go b/hotline/server.go index c4d8f7f..5531bd3 100644 --- a/hotline/server.go +++ b/hotline/server.go @@ -400,7 +400,7 @@ func (s *Server) handleNewConnection(ctx context.Context, rwc io.ReadWriteCloser return err } - c.Logger.Info("Login failed", "clientVersion", fmt.Sprintf("%x", c.Version)) + c.Logger.Info("Incorrect login") return nil } -- cgit