Skip to content

Allow users to set a logging level when running a program#99

Merged
rathishcholarajan merged 4 commits intoQiskit:mainfrom
jyu00:logging-level
Jan 13, 2022
Merged

Allow users to set a logging level when running a program#99
rathishcholarajan merged 4 commits intoQiskit:mainfrom
jyu00:logging-level

Conversation

@jyu00
Copy link
Copy Markdown
Collaborator

@jyu00 jyu00 commented Jan 12, 2022

Summary

Allow users to set a logging level when running a program.
@daka1510 Sorry for taking another one from you, but I need this to get some performance numbers.

Details and comments

Fixes #11

This PR adds a new RuntimeOptions class for the execution options, including backend_name, image, and now log_level. Since we already have options as a parameter to run(), it made more sense to me to have both image and log_level in it instead of creating more parameters, especially since they're both related to the execution environment.

Copy link
Copy Markdown
Member

@rathishcholarajan rathishcholarajan left a comment

Choose a reason for hiding this comment

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

LGTM! Left a minor doc suggestion...

Comment thread qiskit_ibm_runtime/runtime_options.py Outdated
@rathishcholarajan rathishcholarajan merged commit 32607d6 into Qiskit:main Jan 13, 2022
@jyu00 jyu00 deleted the logging-level branch February 2, 2022 15:48
@rathishcholarajan rathishcholarajan added the Changelog: API Change Include in the Changed section of the changelog label Feb 24, 2022
blakejohnson pushed a commit to blakejohnson/qiskit-ibm-runtime that referenced this pull request May 26, 2023
* catch none optimizer

* skip optimizer in print

* skip qaoa test for now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: API Change Include in the Changed section of the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Specify logging level when running a program

2 participants