auth
auth/context.go
Add logging. Log errors when obtaining and saving access tokens.
1.1 --- a/context.go Wed Aug 13 06:46:13 2014 -0400 1.2 +++ b/context.go Wed Aug 13 07:04:23 2014 -0400 1.3 @@ -1,12 +1,16 @@ 1.4 package auth 1.5 1.6 -import "io" 1.7 +import ( 1.8 + "io" 1.9 + "log" 1.10 +) 1.11 1.12 type Context struct { 1.13 Config ServerConfig 1.14 Clients ClientStore 1.15 Tokens TokenStore 1.16 Profiles ProfileStore 1.17 + Log *log.Logger 1.18 } 1.19 1.20 func (c Context) RenderError(w io.Writer, err error) {