change logging format

This commit is contained in:
2026-01-03 09:53:07 -05:00
parent 5192919645
commit 19752a0c89
5 changed files with 32 additions and 2 deletions

View File

@@ -424,6 +424,8 @@ func Start(dir string) error {
return ui.Error(fmt.Sprintf("failed to change directory to %s", dir), err)
}
ui.Log("Running root=%s, port=%d.", filepath.Clean(dir), *config.Port)
cfg := parseConfig()
notFoundData := generateNotFoundData(&cfg)
routes := loadDirs()
@@ -475,7 +477,8 @@ func Start(dir string) error {
w.Write(data)
})
ui.Log("Server initialized")
ui.Log("Ready to accept connections on http://localhost:%d", *config.Port)
ui.Log("Ready to accept connections tcp")
return http.ListenAndServe(fmt.Sprintf("0.0.0.0:%d", *config.Port), nil)
}