aboutsummaryrefslogtreecommitdiff
path: root/service/logging.go
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-02-02 07:24:06 +0000
committerr <r@freesoftwareextremist.com>2020-02-02 07:24:06 +0000
commit4d9e0af373b3a92d04498070c6fc8f6c197fc9c0 (patch)
treecdd8f8f3b2decbcf85bad4235bb4b914f39bbaad /service/logging.go
parentc702a2b501769697576d601875d1db4553eeff12 (diff)
downloadbloat-4d9e0af373b3a92d04498070c6fc8f6c197fc9c0.tar.gz
bloat-4d9e0af373b3a92d04498070c6fc8f6c197fc9c0.zip
Add conversation muting
Diffstat (limited to 'service/logging.go')
-rw-r--r--service/logging.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/service/logging.go b/service/logging.go
index 3d2baba..f26abaf 100644
--- a/service/logging.go
+++ b/service/logging.go
@@ -212,3 +212,19 @@ func (s *ls) SaveSettings(ctx context.Context, c *model.Client, settings *model.
}(time.Now())
return s.Service.SaveSettings(ctx, c, settings)
}
+
+func (s *ls) MuteConversation(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",
+ "MuteConversation", id, time.Since(begin), err)
+ }(time.Now())
+ return s.Service.MuteConversation(ctx, c, id)
+}
+
+func (s *ls) UnMuteConversation(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",
+ "UnMuteConversation", id, time.Since(begin), err)
+ }(time.Now())
+ return s.Service.UnMuteConversation(ctx, c, id)
+}