mirror of
https://github.com/gryf/slack-backup.git
synced 2025-12-17 11:30:25 +01:00
Add message body to log
This commit is contained in:
@@ -3,6 +3,7 @@ Create backup for certain date for specified channel in slack
|
||||
"""
|
||||
from datetime import datetime
|
||||
import getpass
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
|
||||
@@ -151,6 +152,8 @@ class Client(object):
|
||||
logging.info("Skipping message of type `%s'.", data['type'])
|
||||
return
|
||||
|
||||
logging.debug('Message data: %s', json.dumps(data))
|
||||
|
||||
try:
|
||||
user = self.q(o.User).\
|
||||
filter(o.User.slackid == data['user']).one()
|
||||
|
||||
Reference in New Issue
Block a user