Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: comment unnecessary namespace for now #124

Merged
merged 1 commit into from
Jun 15, 2023

Conversation

subhamkrai
Copy link
Collaborator

@subhamkrai subhamkrai commented Jun 15, 2023

core: comment unnecessary namespace for now

fixes: #118

@subhamkrai
Copy link
Collaborator Author

this is not the most elegant solution, I would like to do something similar to rook, but for that, I'll need to change the whole fmt.Print to another logging method which I'll avoid until the golang release.

@subhamkrai subhamkrai requested a review from travisn June 15, 2023 06:48
@@ -38,8 +39,10 @@ var RootCmd = &cobra.Command{
Args: cobra.MinimumNArgs(1),
TraverseChildren: true,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
logging.Info("CephCluster namespace: %q", CephClusterNamespace)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before we create a new debug option, how about if we just comment out these two lines for now? Perhaps we don't even need a debug mode, or may use a different approach.

@subhamkrai subhamkrai force-pushed the debug-namespace branch 3 times, most recently from 6bfa2e9 to c774588 Compare June 15, 2023 15:31
Signed-off-by: subhamkrai <srai@redhat.com>
@subhamkrai subhamkrai requested a review from travisn June 15, 2023 15:32
@subhamkrai subhamkrai changed the title core: print namespace in debug mode only core: comment unnecessary namespace for now Jun 15, 2023
@subhamkrai subhamkrai merged commit 0d4ae96 into rook:master Jun 15, 2023
@subhamkrai subhamkrai deleted the debug-namespace branch June 15, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Namespace information is printed every time unexpectedly
2 participants