Skip to content

Commit

Permalink
core: comment unnecessary namespace for now
Browse files Browse the repository at this point in the history
Signed-off-by: subhamkrai <srai@redhat.com>
  • Loading branch information
subhamkrai committed Jun 15, 2023
1 parent 9124f7e commit 6bfa2e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ var RootCmd = &cobra.Command{
Args: cobra.MinimumNArgs(1),
TraverseChildren: true,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
logging.Info("CephCluster namespace: %q", CephClusterNamespace)
logging.Info("Rook operator namespace: %q", OperatorNamespace)
// logging.Info("CephCluster namespace: %q", CephClusterNamespace)
// logging.Info("Rook operator namespace: %q", OperatorNamespace)
},
}

Expand Down
10 changes: 10 additions & 0 deletions pkg/logging/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,13 @@ func Fatal(err error, args ...interface{}) {
fmt.Println()
os.Exit(1)
}

func Debug(output string, debugMode bool, args ...interface{}) {
blue := color.New(color.FgBlue).SprintFunc()
if output != "" {
fmt.Print(blue("Info: "))
fmt.Printf(output, args...)
}

fmt.Println()
}

0 comments on commit 6bfa2e9

Please sign in to comment.