mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
wss: added a new scheme wss for convenience
This commit is contained in:
1 parent
a62674838e
commit
15f9e74e39
11 files changed
+166
-75
No files matched your search
+4
-1
@@ -8,9 +8,12 @@ import (
|
||||
// F is the main log function.
|
||||
var F = func(string, ...interface{}) {}
|
||||
|
||||
func init() {
|
||||
stdlog.SetFlags(stdlog.Flags() | stdlog.Lshortfile)
|
||||
}
|
||||
|
||||
// Debugf prints debug log.
|
||||
func Debugf(f string, v ...interface{}) {
|
||||
stdlog.SetFlags(stdlog.LstdFlags | stdlog.Lshortfile)
|
||||
stdlog.Output(2, fmt.Sprintf(f, v...))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user