Added enable trace option to strmqm, Temporarily removing dist tag as not supported by power build (#57)

* Added enable trace option to strmqm

* Temporarily removing dist tag as not supported by power build
This commit is contained in:
Luke J Powlett
2020-01-10 10:03:32 +00:00
committed by GitHub Enterprise
parent f94d1b8af5
commit 4cab3e8d3b
4 changed files with 66 additions and 1 deletions

View File

@@ -199,6 +199,28 @@ func stopQueueManager(name string) error {
return nil
}
func startMQTrace() error {
log.Println("Starting MQ trace")
out, rc, err := command.Run("strmqtrc")
if err != nil {
log.Printf("Error %v starting trace: %v", rc, string(out))
return err
}
log.Println("Started MQ trace")
return nil
}
func endMQTrace() error {
log.Println("Ending MQ Trace")
out, rc, err := command.Run("endmqtrc")
if err != nil {
log.Printf("Error %v ending trace: %v", rc, string(out))
return err
}
log.Println("Ended MQ trace")
return nil
}
func formatMQSCOutput(out string) string {
// redact sensitive information
out, _ = mqscredact.Redact(out)