Skip to content

Commit

Permalink
Reduce logging output
Browse files Browse the repository at this point in the history
  • Loading branch information
paultyng committed Aug 13, 2020
1 parent 6ac17ab commit 01dac5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion langserver/handlers/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ func (svc *service) Assigner() (jrpc2.Assigner, error) {

tr := newTickReporter(5 * time.Second)
tr.AddReporter(func() {
svc.logger.Printf("Root modules waiting to be loaded: %d", svc.modMgr.WorkerQueueSize())
queueSize := svc.modMgr.WorkerQueueSize()
if queueSize < 1 {
return
}
svc.logger.Printf("Root modules waiting to be loaded: %d", queueSize)
})
tr.StartReporting(svc.sessCtx)

Expand Down

0 comments on commit 01dac5e

Please sign in to comment.