aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2016-07-30 23:05:44 +0300
committerJan Tuomi <jans.tuomi@gmail.com>2016-07-30 23:05:44 +0300
commit006b055d259e70ae023dd0bf86897c910e2d70fd (patch)
tree3a935e2400d4759a5e710b21e212a6945dcc73c6
parent6d287427879950e08f434fd04ccf15e9076b425b (diff)
Add Telegram message content info to logging
-rw-r--r--project/botmanager.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/project/botmanager.py b/project/botmanager.py
index d4db63c..4984a97 100644
--- a/project/botmanager.py
+++ b/project/botmanager.py
@@ -104,6 +104,7 @@ class BotManager(object):
"timestamp": date
}
ShoutboxCommunicator.send(message)
+ logging.info("Message info: user: {}, message: '{}'".format(user_name, text))
def handle(self, msg):
"""Start parsing the incoming message if it is a text message"""