Adds log info about serve static dir

This commit is contained in:
Alexey Khit
2022-08-21 09:29:20 +03:00
parent 090c360747
commit 7560bcbc83
+1
View File
@@ -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)