Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'stanza_log' option #100

Merged
merged 2 commits into from
Apr 1, 2016
Merged

Add 'stanza_log' option #100

merged 2 commits into from
Apr 1, 2016

Conversation

chrzaszcz
Copy link
Member

No description provided.

To enable it, add the following line:
  {stanza_log, true}.
to the test config.

The log contains only stanzas which have JID defined and are:
- either sent using escalus_connection
- or received (not peeked) in escalus_client.
@chrzaszcz chrzaszcz changed the title Do NOT merge yet: Add 'stanza_log' option [wip] Add 'stanza_log' option Mar 22, 2016
ReportString = io_lib:format("~s ~p", [Jid, Direction]),
PrettyStanza =
try
binary:list_to_bin(exml:to_pretty_iolist(Stanza))
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this function does exactly the same as erlang:list_to_binary/1, I'd change this line to simply list_to_binary, but that's only a cosmetic change.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@chrzaszcz chrzaszcz changed the title [wip] Add 'stanza_log' option Add 'stanza_log' option Apr 1, 2016
@michalwski michalwski merged commit 07119b4 into master Apr 1, 2016
@michalwski michalwski deleted the stanza_log branch April 1, 2016 10:02
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