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

[GH-7079] Added verbose param to h2o.init() and guarded h2o.conn.show_status() in h20.py #7079 [nocheck] #15653

Merged
merged 10 commits into from
Oct 10, 2023

Conversation

Mohit1345
Copy link
Contributor

Closes #7079

1.Added verbose parameter to init() in h2o.py, allowing users to control the verbosity during initialization.
2. The 'verbose' parameter is set to True by default (similar to h2o.connect() as said in issue).
3.The h2oconn.cluster.show_status() call is now guarded and will be executed only when 'verbose' is True.
4.Additionally, a comment has been added to the h2o.init() function to explain the purpose of the 'verbose' parameter and its default value.

Fixes #7079

mn-mikke
mn-mikke previously approved these changes Jul 28, 2023
Copy link
Collaborator

@mn-mikke mn-mikke left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -136,7 +136,7 @@ def connection():
def init(url=None, ip=None, port=None, name=None, https=None, cacert=None, insecure=None, username=None, password=None,
cookies=None, proxy=None, start_h2o=True, nthreads=-1, ice_root=None, log_dir=None, log_level=None,
max_log_file_size=None, enable_assertions=True, max_mem_size=None, min_mem_size=None, strict_version_check=None,
ignore_config=False, extra_classpath=None, jvm_custom_args=None, bind_to_localhost=True, **kwargs):
ignore_config=False, extra_classpath=None, jvm_custom_args=None, bind_to_localhost=True,verbose = True, **kwargs):
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: missing space

Copy link
Contributor Author

@Mohit1345 Mohit1345 Aug 17, 2023

Choose a reason for hiding this comment

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

@mn-mikke last commit "added space" is rebased and also space is added in it

@mn-mikke mn-mikke changed the title Added verbose param to h2o.init() and guarded h2o.conn.show_status() in h20.py #7079 [GH-7079] Added verbose param to h2o.init() and guarded h2o.conn.show_status() in h20.py #7079 Jul 28, 2023
@mn-mikke
Copy link
Collaborator

Please rebase the change to rel-3.42.0 to get it in the next fix release.

@wendycwong wendycwong changed the title [GH-7079] Added verbose param to h2o.init() and guarded h2o.conn.show_status() in h20.py #7079 [GH-7079] Added verbose param to h2o.init() and guarded h2o.conn.show_status() in h20.py #7079 [nocheck] Jul 28, 2023
mn-mikke and others added 9 commits August 17, 2023 20:17
…i#15681)

* ht/adding disclaimer in docs

* ht/added flow & download page

* ht/updated download page

* ht/added security documentation section

* ht/user guide updates

* ht/uniformity

* ht/added additional note to welcome page

* callouts

* ht/banner color switch

* ht/rename callout

---------

Co-authored-by: Jeff Fohl <[email protected]>
…the change should be made in standalone test. He provides the code and I just copied and pasted. (h2oai#15675)
@mn-mikke mn-mikke changed the base branch from master to rel-3.42.0 August 21, 2023 09:28
@mn-mikke mn-mikke changed the base branch from rel-3.42.0 to master October 9, 2023 15:33
@mn-mikke mn-mikke requested a review from valenad1 October 9, 2023 15:36
Copy link
Collaborator

@mn-mikke mn-mikke left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@valenad1 valenad1 left a comment

Choose a reason for hiding this comment

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

LGTM, just a minor suggestion.

@mn-mikke mn-mikke merged commit 5406765 into h2oai:master Oct 10, 2023
39 checks passed
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.

Add verbose parameter to h2o.init()
5 participants