x/tools/gopls: improve daemon logging behavior #40105
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Right now, when gopls is in daemon mode, we by default start the daemon with
-logfile=auto
. Note that the daemon does not log RPC traces -- only direct calls to log.Printf, of which there are few. RPC trace logging is left to the sidecar, so that RPCs from multiple sessions are not intermingled.This means that the gopls daemon creates a mostly (or entirely) empty logfile, which causes clutter and can lead to confusion when looking for actual RPC logs. Arguably, we should instead:
-remote.logfile
, so can be enabled if necessaryThe text was updated successfully, but these errors were encountered: