bit better handling of session token

This commit is contained in:
Alexandre Blazart 2021-02-28 22:15:44 +01:00
parent 3673f3f3ad
commit 3be1da246c
3 changed files with 50 additions and 23 deletions

View file

@ -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)
}