From 7560bcbc831fbbe3972dadf8c971a9fa440064ff Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Sun, 21 Aug 2022 09:29:20 +0300 Subject: [PATCH] Adds log info about serve static dir --- cmd/api/static.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/api/static.go b/cmd/api/static.go index ea3b9f4d..3d061112 100644 --- a/cmd/api/static.go +++ b/cmd/api/static.go @@ -8,6 +8,7 @@ import ( func initStatic(staticDir string) { var root http.FileSystem if staticDir != "" { + log.Info().Str("dir", staticDir).Msg("[api] serve static") root = http.Dir(staticDir) } else { root = http.FS(www.Static)