Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Improve logging #263

Merged
merged 6 commits into from
Jul 16, 2019
Merged

Improve logging #263

merged 6 commits into from
Jul 16, 2019

Conversation

albrow
Copy link
Contributor

@albrow albrow commented Jul 16, 2019

Summary of changes:

  1. Use a logrus.Hook to add a peer ID for all logs when possible.
  2. Change "connected to peer" and "disconnected from peer" messages in mesh-bootstrap from Trace to Info. These are the main and only responsibility of bootstrap nodes so it is appropriate to log them.
  3. Add a new log message at level Info which logs the order hash only for any new valid orders. We still keep the Trace message which includes the entire order.
  4. Rename some uses of the field name peerID to remotePeerID for clarity.

@albrow albrow requested a review from fabioberger July 16, 2019 01:42
@fabioberger fabioberger merged commit 3de669b into development Jul 16, 2019
@fabioberger fabioberger deleted the feature/logging-improvements branch July 16, 2019 10:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants