Adds log info about serve static dir
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
|||||||
func initStatic(staticDir string) {
|
func initStatic(staticDir string) {
|
||||||
var root http.FileSystem
|
var root http.FileSystem
|
||||||
if staticDir != "" {
|
if staticDir != "" {
|
||||||
|
log.Info().Str("dir", staticDir).Msg("[api] serve static")
|
||||||
root = http.Dir(staticDir)
|
root = http.Dir(staticDir)
|
||||||
} else {
|
} else {
|
||||||
root = http.FS(www.Static)
|
root = http.FS(www.Static)
|
||||||
|
|||||||
Reference in New Issue
Block a user