bit better handling of session token
This commit is contained in:
parent
3673f3f3ad
commit
3be1da246c
3 changed files with 50 additions and 23 deletions
10
log/log.go
10
log/log.go
|
@ -34,6 +34,12 @@ func InitDebug() {
|
|||
func Init() {
|
||||
Debug = log.New(ioutil.Discard, "", 0)
|
||||
Info = log.New(os.Stdout, "", 0)
|
||||
Warning = log.New(os.Stdout, "", 0)
|
||||
Error = log.New(os.Stderr, "", 0)
|
||||
|
||||
Warning = log.New(os.Stdout,
|
||||
"WARNING: ",
|
||||
log.Ldate|log.Ltime|log.Lshortfile)
|
||||
|
||||
Error = log.New(os.Stderr,
|
||||
"ERROR: ",
|
||||
log.Ldate|log.Ltime|log.Lshortfile)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue