Skip to content

Commit

Permalink
Fixed error when --log is not specified
Browse files Browse the repository at this point in the history
Details:

* Fixed that not using the `--log` option resulted in an error message
  about invalid use of the `--log-comp` option. (issue #234)

Signed-off-by: Andreas Maier <maiera@de.ibm.com>
  • Loading branch information
andy-maier committed Sep 11, 2022
1 parent 2bec89a commit acba085
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ Released: not yet

**Bug fixes:**

* Fixed that not using the `--log` option resulted in an error message
about invalid use of the `--log-comp` option. (issue #234)

**Enhancements:**

**Cleanup:**
Expand Down
2 changes: 1 addition & 1 deletion zhmc_prometheus_exporter/zhmc_prometheus_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def parse_args(args):
"({dests}). Default: no logging".
format(dests=', '.join(VALID_LOG_DESTINATIONS)))
parser.add_argument("--log-comp", dest='log_complevels', action='append',
metavar="COMP[=LEVEL]", default=[DEFAULT_LOG_COMP],
metavar="COMP[=LEVEL]", default=None,
help="set a logging level ({levels}, default: "
"{def_level}) for a component ({comps}). May be "
"specified multiple times; options add to the default "
Expand Down

0 comments on commit acba085

Please sign in to comment.