From 02d29449b076d30bffc200dbe39fc0a36a617d72 Mon Sep 17 00:00:00 2001 From: josh <josh@elixxir.io> Date: Tue, 25 May 2021 14:39:27 -0700 Subject: [PATCH] Add debug print --- cmd/root.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 91d463964..3fc236fff 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -149,6 +149,7 @@ var rootCmd = &cobra.Command{ // Delete this recipient if viper.GetBool("delete-channel") { + jww.FATAL.Printf("Deleting contact with ID %s", recipientID) deleteChannel(client, recipientID) } @@ -762,7 +763,8 @@ func init() { rootCmd.Flags().Bool("delete-channel", false, "Delete the channel information for the corresponding recipient ID") - viper.BindPFlag("delete-channel", rootCmd.Flags().Lookup("delete-channel")) + viper.BindPFlag("delete-channel", + rootCmd.Flags().Lookup("delete-channel")) rootCmd.Flags().BoolP("send-auth-request", "", false, "Send an auth request to the specified destination and wait"+ -- GitLab