From 670b9c49f83218ccfad959d313e200064575f012 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Sun, 28 Dec 2014 11:33:38 +0000 Subject: [PATCH] Add logs when connecting to IRC and Redis --- tipbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tipbot.py b/tipbot.py index 30f1f2d..e70dd9a 100644 --- a/tipbot.py +++ b/tipbot.py @@ -97,6 +97,7 @@ def SendIRC(msg): def connect_to_irc(network,port): global irc + log_info('Connecting to IRC at %s:%u' % (network, port)) try: irc = socket.socket ( socket.AF_INET, socket.SOCK_STREAM ) irc.connect ( ( network, port ) ) @@ -109,6 +110,7 @@ def connect_to_irc(network,port): SendIRC ( 'USER %s %s %s :%s' % (tipbot_name, tipbot_name, tipbot_name, tipbot_name)) def connect_to_redis(host,port): + log_info('Connecting to Redis at %s:%u' % (host, port)) try: return redis.Redis(host=host,port=port) except Exception, e: