--- a/iro/anbieter/sipgate.py Fri Nov 27 01:07:44 2009 +0100
+++ b/iro/anbieter/sipgate.py Fri Nov 27 01:09:34 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",