Skip to content

IK-7 Add apns:message_id_print_str/1 for random id printing safety#9

Open
jaynel wants to merge 7 commits into
tigertext:masterfrom
jaynel:IK-7.json_logging
Open

IK-7 Add apns:message_id_print_str/1 for random id printing safety#9
jaynel wants to merge 7 commits into
tigertext:masterfrom
jaynel:IK-7.json_logging

Conversation

@jaynel
Copy link
Copy Markdown

@jaynel jaynel commented Jan 27, 2016

No description provided.

Comment thread src/apns_connection.erl Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's still an issue with expiry I think, if you look at the dump it has

",32,40,101,120,112,105,114,101,115,32,111,110,32,"1452054055",

and the 1452.... is will try to be printed as alpha-num within that list

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5> [32,40,101,120,112,105,114,101,115,32,111,110,32].
" (expires on "

That is the result of a io:format and is an iolist. I don't think it is an issue. It is a ~p on a non_neg_integer().

0fee90f#diff-659457922367adf5a4d889b7149f30c4L313

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, now it uses apps:timestamp_str/1 to make a readable expiration time in the log file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants