From 9ec46e0fe2975bcf7ad9514552036f0f513c18ec Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 14 Feb 2025 14:53:59 +0800 Subject: *_server.go: clog.Info instead of Debug for requests --- http_server.go | 2 +- ssh_server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/http_server.go b/http_server.go index 16c30d5..355ac9c 100644 --- a/http_server.go +++ b/http_server.go @@ -14,7 +14,7 @@ import ( 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 b226b7c..b5882de 100644 --- a/ssh_server.go +++ b/ssh_server.go @@ -41,7 +41,7 @@ func serve_ssh(listener net.Listener) error { 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() -- cgit v1.2.3