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

feat: add peerlog plugin #6887

Merged
merged 5 commits into from
Feb 10, 2020
Merged

feat: add peerlog plugin #6887

merged 5 commits into from
Feb 10, 2020

Commits on Feb 10, 2020

  1. wip: minimal plugin works

    License: MIT
    Signed-off-by: Oli Evans <oli@tableflip.io>
    olizilla committed Feb 10, 2020
    Configuration menu
    Copy the full SHA
    d83e07e View commit details
    Browse the repository at this point in the history
  2. feat: add peerlog plugin

    adds a plugin to log just peerIDs for nodes we connect to, to allow us to see how many unique peers a node connects to over time.
    
    It's set up a preloaded plugin, so it would be enabled by default. We may want to extract it to a seperate repo so we can make it an optional add on.
    
    **Usage**
    
    ```console
    $ GOLOG_FILE=~/peer.log IPFS_LOGGING_FMT=json ipfs daemon
    ```
    
    **output**
    
    ```json
    {"level":"info","ts":"2020-02-10T13:54:26.639Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:51","msg":"connected","peer":"QmS2H72gdrekXJggGdE9SunXPntBqdkJdkXQJjuxcH8Cbt"}
    {"level":"info","ts":"2020-02-10T13:54:59.095Z","logger":"plugin/peerlog","caller":"peerlog/peerlog.go:56","msg":"disconnected","peer":"QmS2H72gdrekXJggGdE9SunXPntBqdkJdkXQJjuxcH8Cbt"}
    ```
    
    License: MIT
    Signed-off-by: Oli Evans <oli@tableflip.io>
    olizilla committed Feb 10, 2020
    Configuration menu
    Copy the full SHA
    edfe9c5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0ab1fa1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    58e52f3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    15085fd View commit details
    Browse the repository at this point in the history