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

Fix repeated logging with topics #377

Merged
merged 1 commit into from
Oct 8, 2017

Conversation

DavidKnott
Copy link
Contributor

- What I did

Refactored the logging functionality and added support for logging the same event with topics multiple times. This PR is in response to #373

- How I did it

I cleaned up how event topics and data are parsed.

- How to verify it

Look at my pr, particularly the test I added: test_logging_the_same_event_multiple_times_with_topics

- Description for the changelog

None

- Cute Animal Picture

image

Copy link
Contributor

@jacqueswww jacqueswww left a comment

Choose a reason for hiding this comment

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

Minor changes with conflict & pdb.set_trace(). Otherwise looks good to me.

# # Check that casting matches manual conversion
# assert c._num256_to_num_call(2**127) == c.built_in_conversion(2**127)
# t.s = s
# # c._num256_to_num_call(-1)
Copy link
Contributor

Choose a reason for hiding this comment

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

@DavidKnott I think these slipped in from the other branch. Just replace with the ones we have in master now ;)

viper/parser.py Outdated
# Checks to see if there's any data
if not args:
return ['seq'], 0, 0
holder = ['seq']
maxlen = len(args) * 32
for i, (arg, typ) in enumerate(zip(args, [arg.typ for arg in signature.args])):
# import pdb; pdb.set_trace()
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove pdb.trace() here.

@DavidKnott DavidKnott force-pushed the fix-logging branch 4 times, most recently from b3cc97c to a628f6b Compare October 6, 2017 23:58
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