From 3b59883bc316837f16abb380ff07d65b4eb93845 Mon Sep 17 00:00:00 2001 From: gjahn <gregor.jahn@bht-berlin.de> Date: Thu, 7 Dec 2023 22:48:19 +0100 Subject: [PATCH] Re-order request log output information --- routing/routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routing/routes.go b/routing/routes.go index f51616b..f27a98b 100644 --- a/routing/routes.go +++ b/routing/routes.go @@ -27,9 +27,9 @@ func SetRoutes( router *f.App, config *configuration.Config, store state.Store, if config.LogLevel == "debug" { router.All( "*", func( c *f.Ctx ) error { - log.Printf( "%s %s mime:%s agent:%s", - c.Path(), + log.Printf( "%s %s mime:%s agent:%s", c.Method(), + c.Path(), c.Get( f.HeaderContentType ), c.Get( f.HeaderUserAgent ), ) -- GitLab