Slight Performance improvements with Logging #67

Merged
abdulrabbani00 merged 5 commits from bug/performance-metrics into develop 2022-06-15 15:49:31 +00:00
2 changed files with 1 additions and 3 deletions
Showing only changes of commit cd42868799 - Show all commits

View File

@ -49,6 +49,7 @@ jobs:
echo vulcanize_ipld_eth_beacon_db=$GITHUB_WORKSPACE/ipld-eth-beacon-db/ > ./config.sh
echo vulcanize_ipld_eth_beacon_indexer=$GITHUB_WORKSPACE/ipld-eth-beacon-indexer >> ./config.sh
echo eth_beacon_config_file=$GITHUB_WORKSPACE/ipld-eth-beacon-indexer/config/cicd/boot.ipld-eth-beacon-indexer.json >> ./config.sh
echo eth_beacon_capture_mode=boot >> ./config.sh
cat ./config.sh
- name: Run docker compose
@ -159,7 +160,6 @@ jobs:
run: |
echo vulcanize_ipld_eth_beacon_db=$GITHUB_WORKSPACE/ipld-eth-beacon-db/ > ./config.sh
echo vulcanize_ipld_eth_beacon_indexer=$GITHUB_WORKSPACE/ipld-eth-beacon-indexer >> ./config.sh
echo eth_beacon_capture_mode=boot >> ./config.sh
cat ./config.sh
- name: Run docker compose

View File

@ -97,7 +97,6 @@ func processFullSlot(ctx context.Context, db sql.Database, serverAddress string,
case <-ctx.Done():
return nil, ""
default:
log.SetLevel(log.DebugLevel)
totalStart := time.Now()
ps := &ProcessSlot{
Slot: slot,
@ -230,7 +229,6 @@ func processFullSlot(ctx context.Context, db sql.Database, serverAddress string,
"performanceMetrics": fmt.Sprintf("%+v\n", ps.PerformanceMetrics),
}).Debug("Performance Metric output!")
log.SetLevel(log.InfoLevel)
return nil, ""
}
}