diff options
author | r <r@freesoftwareextremist.com> | 2019-12-15 17:37:58 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-15 17:37:58 +0000 |
commit | f68d72ae0eb2eb6c15cd225c1a3b9185aaa20e3f (patch) | |
tree | 301e89bb8ebb56b9756fe322eb9ad953bac2661e /service/logging.go | |
parent | 51a4b16af518fde883df50f7f627fda21c18065e (diff) | |
download | bloat-f68d72ae0eb2eb6c15cd225c1a3b9185aaa20e3f.tar.gz bloat-f68d72ae0eb2eb6c15cd225c1a3b9185aaa20e3f.zip |
Add notification support
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 3a95a94..aa1da68 100644 --- a/service/logging.go +++ b/service/logging.go @@ -77,6 +77,14 @@ func (s *loggingService) ServeThreadPage(ctx context.Context, client io.Writer, return s.Service.ServeThreadPage(ctx, client, c, id, reply) } +func (s *loggingService) ServeNotificationPage(ctx context.Context, client io.Writer, c *mastodon.Client, maxID string, minID string) (err error) { + defer func(begin time.Time) { + s.logger.Printf("method=%v, max_id=%v, min_id=%v, took=%v, err=%v\n", + "ServeNotificationPage", maxID, minID, time.Since(begin), err) + }(time.Now()) + return s.Service.ServeNotificationPage(ctx, client, c, maxID, minID) +} + func (s *loggingService) Like(ctx context.Context, client io.Writer, c *mastodon.Client, id string) (err error) { defer func(begin time.Time) { s.logger.Printf("method=%v, id=%v, took=%v, err=%v\n", |