Skip to content

Commit

Permalink
Remove token from events
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Mar 17, 2021
1 parent 67db2e2 commit 78a65af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions service.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ func newService() (*myservice, error) {
return nil, err
}

elog.Info(1, fmt.Sprintf("Should we start here?"))
m.InletsClientConfig = c

upstreams := "--upstream=" + strings.TrimRight(strings.Join(m.Upstreams, ","), ",")
Expand All @@ -62,7 +61,7 @@ func newService() (*myservice, error) {
"--auto-tls=" + strconv.FormatBool(m.AutoTLS),
}

elog.Info(1, fmt.Sprintf("inlets-pro %v", args))
elog.Info(1, fmt.Sprintf("Starting: inlets-pro %v", strings.Replace(strings.Join(args, " "), m.Token, "REDACTED", 1)))
cmd := exec.Command("inlets-pro", args...)

m.Process = cmd
Expand All @@ -72,7 +71,7 @@ func newService() (*myservice, error) {
elog.Error(1, fmt.Sprintf("Error starting app %s", err.Error()))
}

elog.Info(1, fmt.Sprintf("PID %d", cmd.Process.Pid))
elog.Info(1, fmt.Sprintf("inlets-client PID %d", cmd.Process.Pid))
return m, nil
}

Expand Down

0 comments on commit 78a65af

Please sign in to comment.