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

Dump payload when we are writing to file. #198

Merged
merged 2 commits into from
Jan 9, 2015

Conversation

jondeandres
Copy link
Contributor

No description provided.

@@ -517,7 +517,7 @@ def do_write_payload(payload)
@file = File.open(configuration.filepath, "a")
end

@file.puts payload
@file.puts(dump_payload(payload))
Copy link
Member

Choose a reason for hiding this comment

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

I kinda think that we should do this first, before opening the file, to make things simpler in case the dump fails. Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right @brianr, I've just changed it.

@jondeandres jondeandres force-pushed the dump-payload-when-write-file branch from 69ce696 to 09f387c Compare January 8, 2015 19:32
@jondeandres
Copy link
Contributor Author

@brianr tests are passing here, I think we can merge this and release a new version.

brianr added a commit that referenced this pull request Jan 9, 2015
Dump payload when we are writing to file.
@brianr brianr merged commit 6b8e88a into master Jan 9, 2015
@brianr
Copy link
Member

brianr commented Jan 9, 2015

Released as 1.3.2

@waltjones waltjones deleted the dump-payload-when-write-file branch June 27, 2023 18:18
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