aboutsummaryrefslogtreecommitdiffstats
path: root/warmachine/connections/slack.py
diff options
context:
space:
mode:
authorjason2016-09-09 10:19:01 -0600
committerjason2016-09-09 10:19:01 -0600
commit306e513d3199405d39fdbf48373de5fc7f67df6e (patch)
tree7d9849cbfe0e7f352a33bd8a3c864cc613f357e7 /warmachine/connections/slack.py
parent941adf6a0efd6965a07a8bf094a97f2b6d50e80b (diff)
downloadwarmachine-ng-306e513d3199405d39fdbf48373de5fc7f67df6e.tar.gz
warmachine-ng-306e513d3199405d39fdbf48373de5fc7f67df6e.zip
disable some of the noise in slack when debug logging
Diffstat (limited to '')
-rw-r--r--warmachine/connections/slack.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/warmachine/connections/slack.py b/warmachine/connections/slack.py
index 116a540..8f408a3 100644
--- a/warmachine/connections/slack.py
+++ b/warmachine/connections/slack.py
@@ -78,8 +78,6 @@ class SlackWS(Connection):
78 message)) 78 message))
79 return 79 return
80 80
81 self.log.debug('new slack message: {}'.format(message))
82
83 # Sometimes there isn't a type in the message we receive 81 # Sometimes there isn't a type in the message we receive
84 if 'type' not in message: 82 if 'type' not in message:
85 self.log.error('Received typeless message: {}'.format(message)) 83 self.log.error('Received typeless message: {}'.format(message))
@@ -267,11 +265,11 @@ class SlackWS(Connection):
267 """ 265 """
268 updates user's presence in ``self.user_map`` 266 updates user's presence in ``self.user_map``
269 """ 267 """
270 self.log.debug('updated_presence: {} ({}) was: {} is_now: {}'.format( 268 # self.log.debug('updated_presence: {} ({}) was: {} is_now: {}'.format(
271 msg['user'], self.user_map[msg['user']]['name'], 269 # msg['user'], self.user_map[msg['user']]['name'],
272 self.user_map[msg['user']].get('presence', '<undefined>'), 270 # self.user_map[msg['user']].get('presence', '<undefined>'),
273 msg['presence'] 271 # msg['presence']
274 )) 272 # ))
275 self.user_map[msg['user']]['presence'] = msg['presence'] 273 self.user_map[msg['user']]['presence'] = msg['presence']
276 274
277 @memoize # the dm id should never change 275 @memoize # the dm id should never change