change logging format
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user