• Sina Mahmoodi's avatar
    internal/debug: add JSON log format and rename logging flags (#22341) · 5338ce44
    Sina Mahmoodi authored
    This change adds support for logging JSON records when the --log.json flag is
    given. The --debug and --backtrace flags are deprecated and replaced by
    --log.debug and --log.backtrace.
    
    While changing this, it was noticed that the --memprofilerate and
    --blockprofilerate were ineffective (they were always overridden even if
    --pprof.memprofilerate was not set). This is also fixed.
    Co-authored-by: 's avatarFelix Lange <fjl@twurst.com>
    5338ce44
flags.go 8.37 KB