This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python3 | |
# This script analyses lighthouse beacon node's log files. | |
# To work the beacon node has to run with DEBUG level libp2p and lighthouse logs, i.e. | |
# `RUST_LOG="libp2p_gossipsub=debug" lighthouse -l bn --debug-level debug ...`. | |
# | |
# The script accepts four optional positional arguments: | |
# First argument: The path to the log file to analyze (default "lighthouse.log") | |
# Second argument: The path where the grepped files will get stored. (default ".") | |
# Third argument: The command to use for grepping. (default "grep") |