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

Reduce logging from network layer #1630

Merged
merged 1 commit into from
May 7, 2020

Conversation

rvl
Copy link
Contributor

@rvl rvl commented May 6, 2020

Issue Number

Relates to #1577 / ADP-83.

Overview

  • Set network tip log level to debug
  • Improve formatting of text log message
  • Only log the tip when it changes, because the node can seem to send updates when nothing changes

Comments

This is what it looks like now:

[cardano-wallet.network:Debug:18] [2020-05-06 07:49:54.10 UTC] Network node tip block height is 4125310 at hash c5cb3bcd

@rvl rvl added this to the (ADP-83) Local State Query milestone May 6, 2020
@rvl rvl self-assigned this May 6, 2020
@KtorZ KtorZ added the IMPROVEMENT Mark a PR as an improvement, for auto-generated CHANGELOG label May 6, 2020
Copy link
Contributor

@jonathanknowles jonathanknowles left a comment

Choose a reason for hiding this comment

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

Nice!

I particularly like the use of the debounce function.

@@ -497,6 +494,11 @@ mkTipSyncClient tr localTxSubmissionQ onTipUpdate onTxParamsUpdate = do
Right (Right ls) ->
onTxParamsUpdate' $ txParametersFromUpdateState ls

onTipUpdate' <- debounce $ \tip -> do
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@rvl
Copy link
Contributor Author

rvl commented May 7, 2020

Thanks

bors r+

iohk-bors bot added a commit that referenced this pull request May 7, 2020
1630: Reduce logging from network layer r=rvl a=rvl

### Issue Number

Relates to #1577 / ADP-83.

### Overview

- Set network tip log level to debug
- Improve formatting of text log message
- Only log the tip when it changes, because the node can seem to send updates when nothing changes

### Comments

This is what it looks like now:

```
[cardano-wallet.network:Debug:18] [2020-05-06 07:49:54.10 UTC] Network node tip block height is 4125310 at hash c5cb3bcd
```


1633: review RELEASE_TEMPLATE to constuct changelog from PR + labels r=rvl a=KtorZ

# Issue Number

<!-- Put here a reference to the issue this PR relates to and which requirements it tackles -->

N/A

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

We used to organize the CHANGELOG by milestones, but we are now organizing it by 'type of change' (improvement, bug fix, addition). Therefore, the current thing called CHANGELOG is redundant with the other. I've tweaked the 'make_changelog' script to build a changelog according to these categories, provided that PR were labelled accordingly.



# Comments

<!-- Additional comments or screenshots to attach if any -->

<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Assign the PR to a corresponding milestone
 ✓ Acknowledge any changes required to the Wiki
-->


Co-authored-by: Rodney Lorrimar <[email protected]>
Co-authored-by: Matthias Benkort <[email protected]>
Co-authored-by: KtorZ <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 7, 2020

Build failed (retrying...)

iohk-bors bot added a commit that referenced this pull request May 7, 2020
1630: Reduce logging from network layer r=rvl a=rvl

### Issue Number

Relates to #1577 / ADP-83.

### Overview

- Set network tip log level to debug
- Improve formatting of text log message
- Only log the tip when it changes, because the node can seem to send updates when nothing changes

### Comments

This is what it looks like now:

```
[cardano-wallet.network:Debug:18] [2020-05-06 07:49:54.10 UTC] Network node tip block height is 4125310 at hash c5cb3bcd
```


Co-authored-by: Rodney Lorrimar <[email protected]>
Co-authored-by: Matthias Benkort <[email protected]>
- Set network tip log level to debug
- Improve formatting of text log message
- Only log the tip when it changes, because the node can seem to send updates when nothing changes
@rvl rvl force-pushed the rvl/adp-83/reduce-network-layer-logging branch from 46b07c0 to b489ca0 Compare May 7, 2020 04:47
@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 7, 2020

Canceled

@rvl
Copy link
Contributor Author

rvl commented May 7, 2020

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 7, 2020

@iohk-bors iohk-bors bot merged commit effb855 into master May 7, 2020
@iohk-bors iohk-bors bot deleted the rvl/adp-83/reduce-network-layer-logging branch May 7, 2020 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IMPROVEMENT Mark a PR as an improvement, for auto-generated CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants