Skip to content

Commit 2e81d61

Browse files
authored
Adds logs for the state of the trace pull server (#1401)
As part of migrating to Knuu for the celestia-app e2e tests, I debugged the tracing feature which required adding log messages to verify that the tracer pull server is up and running. This PR includes those log messages, which previously lived in a custom branch and were not available to everyone.
1 parent 056df6c commit 2e81d61

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/trace/fileserver.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ func (lt *LocalTracer) servePullData() {
9797
if err != nil {
9898
lt.logger.Error("trace pull server failure", "err", err)
9999
}
100+
lt.logger.Info("trace pull server started", "address", lt.cfg.Instrumentation.TracePullAddress)
100101
}
101102

102103
// GetTable downloads a table from the server and saves it to the given directory. It uses a multipart

pkg/trace/local_tracer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ func NewLocalTracer(cfg *config.Config, logger log.Logger, chainID, nodeID strin
9696

9797
go lt.drainCanal()
9898
if cfg.Instrumentation.TracePullAddress != "" {
99+
logger.Info("starting pull server", "address", cfg.Instrumentation.TracePullAddress)
99100
go lt.servePullData()
100101
}
101102

0 commit comments

Comments
 (0)