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/dont make requests when validator offline (and use electron-log in the renderer) #94

Merged
merged 7 commits into from
May 4, 2022

Conversation

SvenDowideit
Copy link
Member

@SvenDowideit SvenDowideit commented May 3, 2022

There's a bunch of ws and POST console logs that come from inside nested 4th party modules that show we're making requests even when we know there's no point

this gates them based on NetStatus, and replaces console.log with logger.info

@nathanleclaire
Copy link
Contributor

Looks pretty good, silly, lol. Where is that defined? I can't figure it out at a quick glance

@SvenDowideit
Copy link
Member Author

its "just" one of the built in levels - see "Log Levels" in https://www.npmjs.com/package/electron-log

@SvenDowideit SvenDowideit added this to the 0.3.0 milestone May 4, 2022
@SvenDowideit SvenDowideit force-pushed the fix/dont-make-requests-when-validator-offline branch from aec5b79 to 80146e7 Compare May 4, 2022 03:13
@SvenDowideit SvenDowideit changed the title Fix/dont make requests when validator offline Fix/dont make requests when validator offline (and use electron-log in the renderer) May 4, 2022
@nathanleclaire
Copy link
Contributor

very cool... after conflicts fixed, LGTM

@SvenDowideit SvenDowideit force-pushed the fix/dont-make-requests-when-validator-offline branch from 74af653 to 6fa4188 Compare May 4, 2022 22:54
@SvenDowideit SvenDowideit merged commit 867b9e0 into main May 4, 2022
@SvenDowideit SvenDowideit deleted the fix/dont-make-requests-when-validator-offline branch May 4, 2022 22:55
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