mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Option to censor raw reports by command line args and env vars.
This commit is contained in:
@@ -2,7 +2,6 @@ package process
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/weaveworks/common/mtime"
|
||||
"github.com/weaveworks/scope/report"
|
||||
@@ -93,7 +92,7 @@ func (r *Reporter) processTopology() (report.Topology, error) {
|
||||
|
||||
if p.Cmdline != "" {
|
||||
if r.noCommandLineArguments {
|
||||
node = node.WithLatest(Cmdline, now, strings.Split(p.Cmdline, " ")[0])
|
||||
node = node.WithLatest(Cmdline, now, report.StripCommandArgs(p.Cmdline))
|
||||
} else {
|
||||
node = node.WithLatest(Cmdline, now, p.Cmdline)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user