Moved warning for --russian earlier in init process
This commit is contained in:
parent
8bbfd36a09
commit
26475ed491
|
@ -17,7 +17,7 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version string = "0.59.0"
|
Version string = "0.59.1"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -1098,6 +1098,10 @@ func ServePage(args []string) error {
|
||||||
return errors.New("no supported files found in provided paths")
|
return errors.New("no supported files found in provided paths")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if russian {
|
||||||
|
fmt.Printf("WARNING! Files *will* be deleted after serving!\n\n")
|
||||||
|
}
|
||||||
|
|
||||||
rand.New(rand.NewSource(time.Now().UnixNano()))
|
rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||||
|
|
||||||
mux := httprouter.New()
|
mux := httprouter.New()
|
||||||
|
@ -1179,10 +1183,6 @@ func ServePage(args []string) error {
|
||||||
mux.HandlerFunc("GET", "/debug/pprof/trace", pprof.Trace)
|
mux.HandlerFunc("GET", "/debug/pprof/trace", pprof.Trace)
|
||||||
}
|
}
|
||||||
|
|
||||||
if russian {
|
|
||||||
fmt.Printf("WARNING! Files *will* be deleted after serving!\n\n")
|
|
||||||
}
|
|
||||||
|
|
||||||
if statistics {
|
if statistics {
|
||||||
if statisticsFile != "" {
|
if statisticsFile != "" {
|
||||||
stats.Import(statisticsFile)
|
stats.Import(statisticsFile)
|
||||||
|
|
Loading…
Reference in New Issue