diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-14 14:53:59 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-14 14:53:59 +0800 |
commit | 9ec46e0fe2975bcf7ad9514552036f0f513c18ec (patch) | |
tree | d5d107dd59b08e6bed134a8b4386f0498de6aeeb | |
parent | Makefile: Make version.go a .PHONY (diff) | |
download | forge-9ec46e0fe2975bcf7ad9514552036f0f513c18ec.tar.gz forge-9ec46e0fe2975bcf7ad9514552036f0f513c18ec.tar.zst forge-9ec46e0fe2975bcf7ad9514552036f0f513c18ec.zip |
*_server.go: clog.Info instead of Debug for requests
-rw-r--r-- | http_server.go | 2 | ||||
-rw-r--r-- | 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() |