Skip to content

Commit 78a65af

Browse files
committed
Remove token from events
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 67db2e2 commit 78a65af

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

service.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ func newService() (*myservice, error) {
4848
return nil, err
4949
}
5050

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

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

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

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

75-
elog.Info(1, fmt.Sprintf("PID %d", cmd.Process.Pid))
74+
elog.Info(1, fmt.Sprintf("inlets-client PID %d", cmd.Process.Pid))
7675
return m, nil
7776
}
7877

0 commit comments

Comments
 (0)