diff options
author | Alan Pearce | 2024-04-18 17:25:56 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-18 17:47:17 +0200 |
commit | 6b2d980df841068bca3fe88f2e39091858491edf (patch) | |
tree | 05f20d4050a28238a146ec7b0a5ec789e16f4d05 /server.go | |
parent | 477c7bf60099cf33984894744846a278fc884786 (diff) | |
download | website-6b2d980df841068bca3fe88f2e39091858491edf.tar.lz website-6b2d980df841068bca3fe88f2e39091858491edf.tar.zst website-6b2d980df841068bca3fe88f2e39091858491edf.zip |
disable fiber startup message in production
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server.go b/server.go index dc8ea7b..793345d 100644 --- a/server.go +++ b/server.go @@ -117,7 +117,9 @@ func main() { website.Use(notFoundHandler) hosts[config.BaseURL.Host] = &Host{website} - toplevel := fiber.New() + toplevel := fiber.New(fiber.Config{ + DisableStartupMessage: config.Production, + }) toplevel.Get("/health", func(c *fiber.Ctx) error { return c.SendStatus(fiber.StatusOK) }) |