Swap print statements for logging statements #440

Merged
Atheros1 merged 10 commits from master into master 2013-08-25 21:59:32 +02:00
Showing only changes of commit 2c09326c37 - Show all commits

View File

@ -532,7 +532,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
status, addressVersionNumber, streamNumber, fromRipe = decodeAddress(
fromAddress)
if status != 'success':
logger.warn('API Error 0007: Could not decode address: %s:%s.', fromAddress, status)
logger.warn('API Error 0007: Could not decode address %s. Status: %s.', fromAddress, status)
if status == 'checksumfailed':
return 'API Error 0008: Checksum failed for address: ' + fromAddress
@ -596,7 +596,7 @@ class MySimpleXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):
status, addressVersionNumber, streamNumber, fromRipe = decodeAddress(
fromAddress)
if status != 'success':
logger.warn('API Error 0007: Could not decode address: %s:%s.', fromAddress, status)
logger.warn('API Error 0007: Could not decode address %s. Status: %s.', fromAddress, status)
if status == 'checksumfailed':
return 'API Error 0008: Checksum failed for address: ' + fromAddress