From c7f8e6d3bb197e5829efaf2f1bb9059053e925d7 Mon Sep 17 00:00:00 2001 From: Piotr Kozimor Date: Wed, 11 Aug 2021 06:02:58 +0200 Subject: [PATCH] Add missing methods in UserInternalAPITrace --- userapi/api/api_trace.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/userapi/api/api_trace.go b/userapi/api/api_trace.go index 84dcb309c..5ab0c885b 100644 --- a/userapi/api/api_trace.go +++ b/userapi/api/api_trace.go @@ -116,6 +116,32 @@ func (t *UserInternalAPITrace) QueryOpenIDToken(ctx context.Context, req *QueryO return err } +func (t *UserInternalAPITrace) CreateSession(ctx context.Context, req *CreateSessionRequest, res *CreateSessionResponse) error { + err := t.Impl.CreateSession(ctx, req, res) + util.GetLogger(ctx).Infof("CreateSession req=%+v res=%+v", js(req), js(res)) + return err +} +func (t *UserInternalAPITrace) ValidateSession(ctx context.Context, req *ValidateSessionRequest, res struct{}) error { + err := t.Impl.ValidateSession(ctx, req, res) + util.GetLogger(ctx).Infof("ValidateSession req=%+v res=%+v", js(req), js(res)) + return err +} +func (t *UserInternalAPITrace) GetThreePidForSession(ctx context.Context, req *SessionOwnership, res *GetThreePidForSessionResponse) error { + err := t.Impl.GetThreePidForSession(ctx, req, res) + util.GetLogger(ctx).Infof("GetThreePidForSession req=%+v res=%+v", js(req), js(res)) + return err +} +func (t *UserInternalAPITrace) DeleteSession(ctx context.Context, req *SessionOwnership, res struct{}) error { + err := t.Impl.DeleteSession(ctx, req, res) + util.GetLogger(ctx).Infof("DeleteSession req=%+v res=%+v", js(req), js(res)) + return err +} +func (t *UserInternalAPITrace) IsSessionValidated(ctx context.Context, req *SessionOwnership, res *IsSessionValidatedResponse) error { + err := t.Impl.IsSessionValidated(ctx, req, res) + util.GetLogger(ctx).Infof("IsSessionValidated req=%+v res=%+v", js(req), js(res)) + return err +} + func js(thing interface{}) string { b, err := json.Marshal(thing) if err != nil {