diff -r 2119564de7a9 -r 7295e27e8c99 iro/anbieter/sipgate.py --- a/iro/anbieter/sipgate.py Tue Nov 24 02:10:48 2009 +0100 +++ b/iro/anbieter/sipgate.py Fri Nov 27 01:14:51 2009 +0100 @@ -17,6 +17,8 @@ import ConfigParser import xmlrpclib import base64 +import logging +logger=logging.getLogger("sipgate") class NoValidStatusCode(Exception): pass @@ -41,8 +43,7 @@ def sendSMS(self,sms,recipients): """send SMS with $sms to $recipients""" - import logging - logging.debug('sipgate.sendSMS(%s,%s)'%(sms, str(recipients))) + logger.debug('sipgate.sendSMS(%s,%s)'%(sms, str(recipients))) args={ "TOS" : "text", "Content" : sms.content @@ -51,8 +52,7 @@ def sendFAX(self,fax,recipients): """send the PDF file $fax to $recipients""" - import logging - logging.debug('sipgate.sendFAX(%s,%s)'%(fax, str(recipients))) + logger.debug('sipgate.sendFAX(%s,%s)'%(fax, str(recipients))) pdf=open(fax.attachments[0],"rb") args={ "TOS" : "fax",