Skip to content

fix(logger): Change formatter that collides with new libp2p version [fixes DXJ-459] #334

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

Merged
merged 7 commits into from
Aug 29, 2023

Conversation

akim-bow
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Aug 29, 2023

@akim-bow akim-bow requested a review from shamsartem August 29, 2023 14:13
@akim-bow akim-bow changed the title DXJ-459: Change formatter that collides with new libp2p version fix: Change formatter that collides with new libp2p version [fixes DXJ-459] Aug 29, 2023
@akim-bow akim-bow changed the title fix: Change formatter that collides with new libp2p version [fixes DXJ-459] fix(logger): Change formatter that collides with new libp2p version [fixes DXJ-459] Aug 29, 2023
@akim-bow akim-bow added the e2e Run e2e workflow label Aug 29, 2023
@akim-bow akim-bow requested a review from folex August 29, 2023 15:58
@@ -380,7 +380,7 @@ export abstract class FluencePeer {
// Otherwise the race might occur corrupting the prevData

log_particle.debug('id %s. sending particle to interpreter', item.particle.id);
log_particle.trace('id %s. prevData: %a', item.particle.id, prevData);
log_particle.trace('id %s. prevData: %s', item.particle.id, new TextDecoder().decode(prevData));
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest moving this part to a separate function, instead of dublicating this TextDecoder().decode() stuff so when Ivan creates binary data for avm we can change one line instead of changing three or pottentially more

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refactored this to private method

Akim Mamedov added 2 commits August 29, 2023 23:06
@akim-bow akim-bow merged commit 18a972b into master Aug 29, 2023
@akim-bow akim-bow deleted the dxj-459-fix-formatter branch August 29, 2023 16:32
@fluencebot fluencebot mentioned this pull request Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e Run e2e workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants