Skip to content

Commit

Permalink
Fixed flake8 issues detected on logging changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
grdavies-ntnx committed Mar 31, 2021
1 parent 2a0786d commit 18ba26f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ A log of changes by version and date.
:header: "Version", "Date", "Notes"
:widths: 10, 10, 60

"1.1.21", "3/30/2021", "Fixed flake8 warnings for logging changes."
"1.1.21", "3/30/2021", "Updated logging to use an environment variable NTNX_API_LOG_LEVEL to dictate stdout logging. Default log level is WARNING"
"1.1.20", "3/30/2021", "Resolved issues with metadata functions. Renamed variables in vms tests."
"1.1.19", "3/30/2021", "Updated *.get_project and *.get_categories. Added prism.Vm.get_metadata and prism.Host.get_metadata."
Expand Down
3 changes: 2 additions & 1 deletion ntnx_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import json
import logging
import logging.config
import os

DOCUMENTATION = r'''
name: nutanix_api.client
Expand Down Expand Up @@ -64,7 +65,7 @@
},
'handlers': {
'ntnx_api.client': {
'level':logging_level,
'level': logging_level,
'class': 'logging.StreamHandler',
"formatter": "standard",
"stream": "ext://sys.stdout"
Expand Down
4 changes: 2 additions & 2 deletions ntnx_api/prism.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
},
'handlers': {
'ntnx_api.prism': {
'level':logging_level,
'class':'logging.StreamHandler',
'level': logging_level,
'class': 'logging.StreamHandler',
"formatter": "standard",
"stream": "ext://sys.stdout"
},
Expand Down

0 comments on commit 18ba26f

Please sign in to comment.