diff options
| author | r <r@freesoftwareextremist.com> | 2020-04-17 17:19:11 +0000 | 
|---|---|---|
| committer | r <r@freesoftwareextremist.com> | 2020-04-17 17:31:32 +0000 | 
| commit | 04af1b93dc95d761b4e05a448c9d86ac67623ff6 (patch) | |
| tree | 75da80bfb467874b4fd94617f9c7c4cbd3cdbb85 /service/logging.go | |
| parent | ccdb5ef051bfcc9e96f4b0ce98a32735eb48d1c4 (diff) | |
| download | bloat-04af1b93dc95d761b4e05a448c9d86ac67623ff6.tar.gz bloat-04af1b93dc95d761b4e05a448c9d86ac67623ff6.zip | |
Add account {,un}subscribe
Diffstat (limited to 'service/logging.go')
| -rw-r--r-- | service/logging.go | 16 | 
1 files changed, 16 insertions, 0 deletions
| diff --git a/service/logging.go b/service/logging.go index 2955959..c16cdb3 100644 --- a/service/logging.go +++ b/service/logging.go @@ -269,6 +269,22 @@ func (s *ls) UnBlock(ctx context.Context, c *model.Client, id string) (err error  	return s.Service.UnBlock(ctx, c, id)  } +func (s *ls) Subscribe(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", +			"Subscribe", id, time.Since(begin), err) +	}(time.Now()) +	return s.Service.Subscribe(ctx, c, id) +} + +func (s *ls) UnSubscribe(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", +			"UnSubscribe", id, time.Since(begin), err) +	}(time.Now()) +	return s.Service.UnSubscribe(ctx, c, id) +} +  func (s *ls) SaveSettings(ctx context.Context, c *model.Client, settings *model.Settings) (err error) {  	defer func(begin time.Time) {  		s.logger.Printf("method=%v, took=%v, err=%v\n", | 
