diff options
author | r <r@freesoftwareextremist.com> | 2020-02-02 08:30:40 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-02-02 08:30:40 +0000 |
commit | 5d58269132a27373ef8932ddcbbbf8b8637fa380 (patch) | |
tree | d1bb7dc2dc72a9fb4486d4214a570b3278133b48 /service/logging.go | |
parent | 4d9e0af373b3a92d04498070c6fc8f6c197fc9c0 (diff) | |
download | bloat-5d58269132a27373ef8932ddcbbbf8b8637fa380.tar.gz bloat-5d58269132a27373ef8932ddcbbbf8b8637fa380.zip |
Add status deletion
Diffstat (limited to 'service/logging.go')
-rw-r--r-- | service/logging.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/service/logging.go b/service/logging.go index f26abaf..86aa1cb 100644 --- a/service/logging.go +++ b/service/logging.go @@ -138,7 +138,7 @@ func (s *ls) NewSession(ctx context.Context, instance string) (redirectUrl strin } func (s *ls) Signin(ctx context.Context, c *model.Client, sessionID string, - code string) (token string, err error) { + code string) (token string, userID string, err error) { defer func(begin time.Time) { s.logger.Printf("method=%v, session_id=%v, took=%v, err=%v\n", "Signin", sessionID, time.Since(begin), err) @@ -228,3 +228,11 @@ func (s *ls) UnMuteConversation(ctx context.Context, c *model.Client, id string) }(time.Now()) return s.Service.UnMuteConversation(ctx, c, id) } + +func (s *ls) Delete(ctx context.Context, c *model.Client, id string) (err error) { + defer func(begin time.Time) { + s.logger.Printf("method=%v, id=%v, took=%v, err=%v\n", + "Delete", id, time.Since(begin), err) + }(time.Now()) + return s.Service.Delete(ctx, c, id) +} |