diff options
author | r <r@freesoftwareextremist.com> | 2020-03-04 15:59:59 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-03-04 15:59:59 +0000 |
commit | 911c9b79937a82bd4574972fa24f45f5cb922092 (patch) | |
tree | c0f0ce04c6e0d0e2b8a7b552b8cb887ceb362ad5 /service/logging.go | |
parent | 35a8c247d910f4a17aea5dd9df511f6e44bbc4bf (diff) | |
download | bloat-911c9b79937a82bd4574972fa24f45f5cb922092.tar.gz bloat-911c9b79937a82bd4574972fa24f45f5cb922092.zip |
Remove session details on signout
Diffstat (limited to 'service/logging.go')
-rw-r--r-- | service/logging.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/service/logging.go b/service/logging.go index 795f329..2955959 100644 --- a/service/logging.go +++ b/service/logging.go @@ -162,6 +162,14 @@ func (s *ls) Signin(ctx context.Context, c *model.Client, sessionID string, return s.Service.Signin(ctx, c, sessionID, code) } +func (s *ls) Signout(ctx context.Context, c *model.Client) (err error) { + defer func(begin time.Time) { + s.logger.Printf("method=%v, took=%v, err=%v\n", + "Signout", time.Since(begin), err) + }(time.Now()) + return s.Service.Signout(ctx, c) +} + func (s *ls) Post(ctx context.Context, c *model.Client, content string, replyToID string, format string, visibility string, isNSFW bool, files []*multipart.FileHeader) (id string, err error) { |