diff --git a/src/adminconsole/internal/server/server.go b/src/adminconsole/internal/server/server.go index af0c6181c..0410a3029 100644 --- a/src/adminconsole/internal/server/server.go +++ b/src/adminconsole/internal/server/server.go @@ -168,7 +168,19 @@ func (s *Server) initMiddleware(settings *models.Settings) { // HTTP request logging if config.Get().LogHttpRequests { slog.Info("http request logging enabled") - s.router.Use(middleware.Logger) + s.router.Use(func(next http.Handler) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + // Skip logging for health check, static files, and favicon + if r.URL.Path == "/health" || + strings.HasPrefix(r.URL.Path, "/static/") || + r.URL.Path == "/favicon.ico" { + next.ServeHTTP(w, r) + return + } + // Use the standard Chi logger for all other routes + middleware.Logger(next).ServeHTTP(w, r) + }) + }) } else { slog.Info("http request logging disabled") } diff --git a/src/authserver/internal/server/server.go b/src/authserver/internal/server/server.go index c1b4f402b..35aa2d320 100644 --- a/src/authserver/internal/server/server.go +++ b/src/authserver/internal/server/server.go @@ -174,7 +174,19 @@ func (s *Server) initMiddleware(settings *models.Settings) { // HTTP request logging if config.Get().LogHttpRequests { slog.Info("http request logging enabled") - s.router.Use(middleware.Logger) + s.router.Use(func(next http.Handler) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + // Skip logging for health check, static files, and favicon + if r.URL.Path == "/health" || + strings.HasPrefix(r.URL.Path, "/static/") || + r.URL.Path == "/favicon.ico" { + next.ServeHTTP(w, r) + return + } + // Use the standard Chi logger for all other routes + middleware.Logger(next).ServeHTTP(w, r) + }) + }) } else { slog.Info("http request logging disabled") } diff --git a/src/authserver/update-versions.sh b/src/authserver/update-versions.sh index 09e9fe5b6..835731017 100755 --- a/src/authserver/update-versions.sh +++ b/src/authserver/update-versions.sh @@ -1,6 +1,6 @@ #!/bin/bash -GOIABADA_VERSION="0.8" +GOIABADA_VERSION="0.9" NEW_GO_VERSION="1.23.3" # https://go.dev/dl/ NEW_TAILWIND_VERSION="3.4.14" # https://github.com/tailwindlabs/tailwindcss NEW_GOLANGCI_LINT_VERSION="1.61.0" # https://github.com/golangci/golangci-lint @@ -85,22 +85,22 @@ fi echo "Version update complete." -cd ../core -go get -u ./... -go mod tidy +# cd ../core +# go get -u ./... +# go mod tidy -echo "Updated core dependencies" +# echo "Updated core dependencies" -cd ../authserver -go get -u ./... -go mod tidy +# cd ../authserver +# go get -u ./... +# go mod tidy -echo "Updated authserver dependencies" +# echo "Updated authserver dependencies" -cd ../adminconsole -go get -u ./... -go mod tidy +# cd ../adminconsole +# go get -u ./... +# go mod tidy -echo "Updated adminconsole dependencies" +# echo "Updated adminconsole dependencies" -cd ../authserver \ No newline at end of file +# cd ../authserver \ No newline at end of file diff --git a/src/build/build-binaries.sh b/src/build/build-binaries.sh index 716e6df93..c41b345d6 100755 --- a/src/build/build-binaries.sh +++ b/src/build/build-binaries.sh @@ -1,5 +1,5 @@ #!/bin/bash -VERSION="0.8" +VERSION="0.9" BUILD_DATE=$(date +%Y-%m-%d) GIT_COMMIT=$(git rev-parse --short HEAD) diff --git a/src/build/build-docker-images.sh b/src/build/build-docker-images.sh index f3642727d..49052844d 100755 --- a/src/build/build-docker-images.sh +++ b/src/build/build-docker-images.sh @@ -1,5 +1,5 @@ #!/bin/bash -VERSION="0.8" +VERSION="0.9" BUILD_DATE=$(date +%Y-%m-%d) GIT_COMMIT=$(git rev-parse --short HEAD) diff --git a/src/build/push-docker-images.sh b/src/build/push-docker-images.sh index 282b5c23a..98d169fb6 100755 --- a/src/build/push-docker-images.sh +++ b/src/build/push-docker-images.sh @@ -1,5 +1,5 @@ #!/bin/bash -VERSION="0.8" +VERSION="0.9" echo "Version: $VERSION"