Cleanup unnecessary logging
This commit is contained in:
parent
2362556f80
commit
d9fe4ed846
|
|
@ -170,10 +170,6 @@ func NewOAuthProxy(opts *Options, validator func(string) bool) *OAuthProxy {
|
|||
log.Printf("Cookie settings: name:%s secure(https):%v httponly:%v expiry:%s domain:%s refresh:%s", opts.CookieName, opts.CookieSecure, opts.CookieHttpOnly, opts.CookieExpire, opts.CookieDomain, refresh)
|
||||
|
||||
var cipher *cookie.Cipher
|
||||
log.Printf("Pass Access Token : %v", opts.PassAccessToken)
|
||||
log.Printf("CookieRefresh : %v", opts.CookieRefresh)
|
||||
log.Printf("Time duration 0 : %v", time.Duration(0))
|
||||
log.Printf("Time duration not equal : %v", opts.CookieRefresh != time.Duration(0))
|
||||
if opts.PassAccessToken || (opts.CookieRefresh != time.Duration(0)) {
|
||||
var err error
|
||||
cipher, err = cookie.NewCipher(secretBytes(opts.CookieSecret))
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ package providers
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
|
@ -28,9 +27,6 @@ func TestSessionStateSerialization(t *testing.T) {
|
|||
}
|
||||
encoded, err := s.EncodeSessionState(c)
|
||||
assert.Equal(t, nil, err)
|
||||
log.Printf("T = %v", t)
|
||||
log.Printf("encoded = %v", encoded)
|
||||
// assert.Equal(t, 4, strings.Count(encoded, ":"))
|
||||
assert.Equal(t, 4, strings.Count(encoded, "|"))
|
||||
|
||||
ss, err := DecodeSessionState(encoded, c)
|
||||
|
|
@ -67,7 +63,6 @@ func TestSessionStateSerializationWithUser(t *testing.T) {
|
|||
}
|
||||
encoded, err := s.EncodeSessionState(c)
|
||||
assert.Equal(t, nil, err)
|
||||
log.Printf("Encoded string = %s", encoded)
|
||||
assert.Equal(t, 4, strings.Count(encoded, "|"))
|
||||
|
||||
ss, err := DecodeSessionState(encoded, c)
|
||||
|
|
|
|||
Loading…
Reference in New Issue