print the response msg name only if the request is printed
@@ -139,8 +139,10 @@ func (a *App) PreRun(_ *cobra.Command, args []string) error {
func (a *App) PrintMsg(address string, msgName string, msg proto.Message) error {
a.printLock.Lock()
defer a.printLock.Unlock()
+ if a.Config.PrintRequest {
fmt.Fprint(os.Stderr, msgName)
fmt.Fprintln(os.Stderr, "")
+ }
printPrefix := ""
if len(a.Config.TargetsList()) > 1 && !a.Config.NoPrefix {
printPrefix = fmt.Sprintf("[%s] ", address)
