feat(logging): add detailed logging throughout application components

- Implement logging in router setup, auth handlers, and frpc operations
- Add SoftwareInfo struct for version tracking and logging
- Enhance error messages with more context and logging
- Replace direct error returns with formatted error logging
- Add debug logs for token operations and request validations
This commit is contained in:
2026-02-27 23:44:41 +08:00
parent 72eb90957c
commit e3b3a3aa98
5 changed files with 167 additions and 85 deletions

View File

@@ -3,9 +3,11 @@ package main
import (
"net/http"
"strings"
"super-frpc/postLog"
)
func setupRoutes() {
postLog.Info("Setting up routes...")
http.HandleFunc("/register", RegisterHandler)
http.HandleFunc("/login", LoginHandler)