1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-15 17:51:15 +00:00

added timestamp opcommand output lines

This commit is contained in:
postmannen 2021-04-03 06:51:54 +02:00
parent 3a0f3ee3bb
commit 7dcb9e5709

View file

@ -255,7 +255,7 @@ func (m methodOpCommandRequest) handler(proc process, message Message, node stri
// Loop the the processes map, and find all that is active to
// be returned in the reply message.
for _, v := range proc.processes.active {
s := fmt.Sprintf("* proc - : %v, id: %v, name: %v, allowed from: %s\n", v.processKind, v.processID, v.subject.name(), v.allowedReceivers)
s := fmt.Sprintf("%v, proc: %v, id: %v, name: %v, allowed from: %s\n", time.Now().UTC(), v.processKind, v.processID, v.subject.name(), v.allowedReceivers)
sb := []byte(s)
out = append(out, sb...)
}