Fixed logging message
This commit is contained in:
parent
c2ea304862
commit
fe1cd21413
@ -17,7 +17,7 @@ func cmdStart() (cmd *cobra.Command) {
|
||||
// Run the server
|
||||
log.Printf("Simple File Server v%s", version.VERSION)
|
||||
log.Printf("Compiled with Go %s", version.GetGoVersion())
|
||||
log.Printf("Configuration: root directory='%s', bind to='%s", configData.RootDirectory, configData.BindHostAndPort)
|
||||
log.Printf("Configuration: root directory='%s', bind to='%s'", configData.RootDirectory, configData.BindHostAndPort)
|
||||
log.Println("Start the file server now...")
|
||||
|
||||
http.Handle("/", http.FileServer(http.Dir(configData.RootDirectory)))
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
const VERSION = "1.0.1"
|
||||
const VERSION = "1.0.2"
|
||||
|
||||
func GetGoVersion() (ver string) {
|
||||
ver = runtime.Version()
|
||||
|
Loading…
Reference in New Issue
Block a user