Skip to content

Commit

Permalink
Fix ⛽ and other artifacts in ccze logs
Browse files Browse the repository at this point in the history
  • Loading branch information
coincashew committed Jun 19, 2024
1 parent 95102dc commit f8489a8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions ethpillar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 🙌 Ask questions on Discord:
# * https://discord.gg/dEpAVWgFNB

VERSION="1.7.1"
VERSION="1.7.2"
BASE_DIR=$HOME/git/ethpillar

# Load functions
Expand Down Expand Up @@ -135,7 +135,7 @@ while true; do
# Handle the user's choice from the submenu
case $SUBCHOICE in
1)
sudo bash -c 'journalctl -fu execution | ccze'
sudo bash -c 'journalctl -fu execution | ccze -A'
;;
2)
sudo service execution start
Expand Down Expand Up @@ -201,7 +201,7 @@ while true; do
# Handle the user's choice from the submenu
case $SUBCHOICE in
1)
sudo bash -c 'journalctl -fu consensus | ccze'
sudo bash -c 'journalctl -fu consensus | ccze -A'
;;
2)
sudo service consensus start
Expand Down Expand Up @@ -272,7 +272,7 @@ while true; do
# Handle the user's choice from the submenu
case $SUBCHOICE in
1)
sudo bash -c 'journalctl -fu validator | ccze'
sudo bash -c 'journalctl -fu validator | ccze -A'
;;
2)
sudo service validator start
Expand Down Expand Up @@ -352,7 +352,7 @@ while true; do
# Handle the user's choice from the submenu
case $SUBCHOICE in
1)
sudo bash -c 'journalctl -fu mevboost | ccze'
sudo bash -c 'journalctl -fu mevboost | ccze -A'
;;
2)
sudo service mevboost start
Expand Down Expand Up @@ -513,7 +513,7 @@ while true; do
# Handle the user's choice from the submenu
case $SUBCHOICE in
1)
sudo bash -c 'journalctl -fu grafana-server -fu prometheus -fu ethereum-metrics-exporter -fu prometheus-node-exporter -n 100 | ccze'
sudo bash -c 'journalctl -fu grafana-server -fu prometheus -fu ethereum-metrics-exporter -fu prometheus-node-exporter -n 100 | ccze -A'
;;
2)
sudo systemctl start grafana-server prometheus ethereum-metrics-exporter prometheus-node-exporter
Expand Down
20 changes: 10 additions & 10 deletions view_logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,44 +53,44 @@ if [[ $cols -lt 81 ]]; then
if [ $hasValidator = false ]; then
# RPC Node
tmux new-session -d -s logs \; \
send-keys 'journalctl -fu consensus | ccze' C-m \; \
send-keys 'journalctl -fu consensus | ccze -A' C-m \; \
split-window -h \; \
select-pane -t 1 \; \
send-keys 'journalctl -fu execution | ccze' C-m \; \
send-keys 'journalctl -fu execution | ccze -A' C-m \; \
select-layout even-vertical \;
else
# Staking Node
tmux new-session -d -s logs \; \
send-keys 'journalctl -fu consensus | ccze' C-m \; \
send-keys 'journalctl -fu consensus | ccze -A' C-m \; \
split-window -v \; \
send-keys 'journalctl -fu validator | ccze' C-m \; \
send-keys 'journalctl -fu validator | ccze -A' C-m \; \
select-pane -t 0 \; \
split-window -v \; \
send-keys 'journalctl -fu execution | ccze' C-m \; \
send-keys 'journalctl -fu execution | ccze -A' C-m \; \
select-layout even-vertical \;
fi
else
# Create full screen panes for validator node or non-staking node
if [ $hasValidator = false ]; then
# RPC Node
tmux new-session -d -s logs \; \
send-keys 'journalctl -fu consensus | ccze' C-m \; \
send-keys 'journalctl -fu consensus | ccze -A' C-m \; \
split-window -v \; \
split-window -h \; \
send-keys 'btop --utf-force' C-m \; \
select-pane -t 1 \; \
send-keys 'journalctl -fu execution | ccze' C-m \;
send-keys 'journalctl -fu execution | ccze -A' C-m \;
else
# Staking Node
tmux new-session -d -s logs \; \
send-keys 'journalctl -fu consensus | ccze' C-m \; \
send-keys 'journalctl -fu consensus | ccze -A' C-m \; \
split-window -h \; \
send-keys 'btop --utf-force' C-m \; \
split-window -v \; \
send-keys 'journalctl -fu validator | ccze' C-m \; \
send-keys 'journalctl -fu validator | ccze -A' C-m \; \
select-pane -t 0 \; \
split-window -v \; \
send-keys 'journalctl -fu execution | ccze' C-m \;
send-keys 'journalctl -fu execution | ccze -A' C-m \;
fi
fi

Expand Down

0 comments on commit f8489a8

Please sign in to comment.