mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
log: add a default implement of func F
This commit is contained in:
1 parent
3adf3b30b5
commit
36246d9d08
7 files changed
+29
-8
No files matched your search
@@ -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())
|
||||
|
||||
|
||||
Reference in new issue
Block a user