log: add a default implement of func F

This commit is contained in:
nadoo committed 2018-06-26 17:00:13 +08:00
1 parent 3adf3b30b5
commit 36246d9d08
7 files changed
+29 -8

No files matched your search

+5 -6
View File
@@ -1,7 +1,6 @@
package main
import (
stdlog "log"
"os"
"os/signal"
"strings"
@@ -36,11 +35,11 @@ func main() {
confInit()
log.F = func(f string, v ...interface{}) {
if conf.Verbose {
stdlog.Printf(f, v...)
}
}
// log.F = func(f string, v ...interface{}) {
// if conf.Verbose {
// stdlog.Printf(f, v...)
// }
// }
sDialer := NewRuleDialer(conf.rules, dialerFromConf())