log query if provided

pull/559/head
kompotkot 2022-03-18 17:19:56 +00:00
rodzic 0cd3c35796
commit b6b99e5f7a
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -108,6 +108,9 @@ func logMiddleware(next http.Handler) http.Handler {
}
if stateCLI.enableDebugFlag {
if r.URL.RawQuery != "" {
logStr += fmt.Sprintf(" %s", r.URL.RawQuery)
}
accessID := extractAccessID(r)
if accessID != "" {
dataSource := extractDataSource(r)