diff --git a/src/mod/info/logger/trafficlog.go b/src/mod/info/logger/trafficlog.go index 839a698..b0761fe 100644 --- a/src/mod/info/logger/trafficlog.go +++ b/src/mod/info/logger/trafficlog.go @@ -27,6 +27,6 @@ func (l *Logger) LogHTTPRequest(r *http.Request, reqclass string, statusCode int requestURI := r.RequestURI statusCodeString := strconv.Itoa(statusCode) //fmt.Println("[" + time.Now().Format("2006-01-02 15:04:05.000000") + "] [router:" + reqclass + "] [client " + clientIP + "] " + r.Method + " " + requestURI + " " + statusCodeString) - l.logger.Println("[" + time.Now().Format("2006-01-02 15:04:05.000000") + "] [router:" + reqclass + "] [origin:" + r.URL.Hostname() + "] [client " + clientIP + "] " + r.Method + " " + requestURI + " " + statusCodeString) + l.logger.Println("[" + time.Now().Format("2006-01-02 15:04:05.000000") + "] [router:" + reqclass + "] [origin:" + r.URL.Hostname() + "] [client " + clientIP + "] [useragent " + r.UserAgent() + "] " + r.Method + " " + requestURI + " " + statusCodeString) }() }