Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Commit

Permalink
fix log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksherron committed Feb 3, 2020
1 parent 00e3a47 commit b8c2409
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func CheckInit() {
limit = int64(Workers)
}

fmt.Print("\nStarting proxy checks...\n\n")
log.Print("\nStarting proxy checks...\n\n")
log.SetOutput(nil)
atomic.StoreInt64(&testCount, 0)
realIP = hostIP()
Expand Down Expand Up @@ -343,7 +343,7 @@ func CheckInit() {
bar.Finish()
}
log.SetOutput(os.Stderr)
fmt.Println("Done checking proxies. Took ", time.Since(begin))
log.Println("Done checking proxies.")
busy = false
}

Expand Down
5 changes: 3 additions & 2 deletions internal/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func getKuaidaili(u string) (string, error) {

// DownloadProxies downloads proxies from providers.
func DownloadProxies() Proxies {
log.Println("\rStarting proxy downloads...")
log.Println(" Starting proxy downloads...")
wgD.Add(17)
var providerProxies Proxies

Expand Down Expand Up @@ -349,6 +349,7 @@ func DownloadInit() {
fmt.Fprintln(tmpfile, v)
}
}
log.Println("Done Downloading proxies.")
CheckInit()
fmt.Println("Done")

}

0 comments on commit b8c2409

Please sign in to comment.