Browse files

add mesage size to debug output

  • Loading branch information...
1 parent 634da68 commit d34c6af126bb00d855d259290864da7c7bf88e50 @timbuchwaldt timbuchwaldt committed May 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/apn_on_rails/app/models/apn/notification.rb
View
2 lib/apn_on_rails/app/models/apn/notification.rb
@@ -99,7 +99,7 @@ def to_apple_json
def message_for_sending
json = self.to_apple_json
message = "\0\0 #{self.device.to_hexa}\0#{json.length.chr}#{json}"
- raise APN::Errors::ExceededMessageSizeError.new(message) if message.size.to_i > 256
+ raise APN::Errors::ExceededMessageSizeError.new("#{message} #{message.size.to_i}") if message.size.to_i > 256
message
end

0 comments on commit d34c6af

Please sign in to comment.