From 9ec46e0fe2975bcf7ad9514552036f0f513c18ec Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 14 Feb 2025 14:53:59 +0800 Subject: [PATCH] *_server.go: clog.Info instead of Debug for requests --- http_server.go | 2 +- ssh_server.go | 2 +- diff --git a/http_server.go b/http_server.go index 16c30d5caaa033b90d83f978f038c22fa52ba546..355ac9cb719cad4f74372280dd5d3971bd02a23d 100644 --- a/http_server.go +++ b/http_server.go @@ -14,7 +14,7 @@ type http_router_t struct{} func (router *http_router_t) ServeHTTP(w http.ResponseWriter, r *http.Request) { - clog.Debug("Incoming HTTP: " + r.RemoteAddr + " " + r.Method + " " + r.RequestURI) + clog.Info("Incoming HTTP: " + r.RemoteAddr + " " + r.Method + " " + r.RequestURI) segments, _, err := parse_request_uri(r.RequestURI) if err != nil { diff --git a/ssh_server.go b/ssh_server.go index b226b7c732172fe727bf450553588aa312c810b3..b5882de9b0b4efc6830de00144209193220d5fea 100644 --- a/ssh_server.go +++ b/ssh_server.go @@ -41,7 +41,7 @@ if client_public_key != nil { client_public_key_string = string(go_ssh.MarshalAuthorizedKey(client_public_key)) } - clog.Debug("Incoming SSH: " + session.RemoteAddr().String() + " " + strings.TrimSuffix(client_public_key_string, "\n") + " " + session.RawCommand()) + clog.Info("Incoming SSH: " + session.RemoteAddr().String() + " " + strings.TrimSuffix(client_public_key_string, "\n") + " " + session.RawCommand()) cmd := session.Command() -- 2.48.1