Write exception in logger if message can not be decoded
This commit is contained in:
parent
5bb8b32ce7
commit
52589aa802
@ -32,8 +32,12 @@ module SMSd
|
||||
break if @terminate
|
||||
|
||||
modem.messages.each do |sms|
|
||||
if sms.is_a?(Biju::Sms)
|
||||
handle_message sms unless check_number(
|
||||
sms.phone_number, sms.type_of_address)
|
||||
else
|
||||
logger.error sms.to_s
|
||||
end
|
||||
end
|
||||
end
|
||||
modem.close
|
||||
|
Loading…
x
Reference in New Issue
Block a user