Fixed logging message

This commit is contained in:
Thorsten Sommer 2018-09-14 08:59:16 +02:00
parent c2ea304862
commit fe1cd21413
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ func cmdStart() (cmd *cobra.Command) {
// Run the server // Run the server
log.Printf("Simple File Server v%s", version.VERSION) log.Printf("Simple File Server v%s", version.VERSION)
log.Printf("Compiled with Go %s", version.GetGoVersion()) 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...") log.Println("Start the file server now...")
http.Handle("/", http.FileServer(http.Dir(configData.RootDirectory))) http.Handle("/", http.FileServer(http.Dir(configData.RootDirectory)))

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
) )
const VERSION = "1.0.1" const VERSION = "1.0.2"
func GetGoVersion() (ver string) { func GetGoVersion() (ver string) {
ver = runtime.Version() ver = runtime.Version()