Skip to content

Commit 793dad2

Browse files
Format Debug Log
1 parent c70eade commit 793dad2

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

icontrol/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.3.15"
1+
__version__ = "1.3.16"

icontrol/authtoken.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def get_auth_providers(self, netloc):
100100

101101
response = requests.get(url, verify=self.verify, proxies=self.proxies)
102102
if not response.ok or not hasattr(response, "json"):
103-
error_message = '%s Unexpected Error: %s for uri: %s\nText: %r' %\
103+
error_message = '%s Unexpected Error: %s for uri: %s Text: %r' %\
104104
(response.status_code,
105105
response.reason,
106106
response.url,
@@ -155,7 +155,7 @@ def get_new_token(self, netloc):
155155
)
156156
self.attempts += 1
157157
if not response.ok or not hasattr(response, "json"):
158-
error_message = '%s Unexpected Error: %s for uri: %s\nText: %r' %\
158+
error_message = '%s Unexpected Error: %s for uri: %s Text: %r' %\
159159
(response.status_code,
160160
response.reason,
161161
response.url,
@@ -173,7 +173,7 @@ def get_new_token(self, netloc):
173173
)
174174
except (KeyError, ValueError):
175175
error_message = \
176-
'%s Unparseable Response: %s for uri: %s\nText: %r' %\
176+
'%s Unparseable Response: %s for uri: %s Text: %r' %\
177177
(response.status_code,
178178
response.reason,
179179
response.url,
@@ -187,7 +187,7 @@ def get_new_token(self, netloc):
187187
)
188188
except iControlUnexpectedHTTPError:
189189
error_message = \
190-
'%s Token already expired: %s for uri: %s\nText: %r' % \
190+
'%s Token already expired: %s for uri: %s Text: %r' % \
191191
(response.status_code,
192192
time.ctime(expiration_bigip),
193193
response.url,

icontrol/session.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,13 @@ def wrapper(self, RIC_base_uri, **kwargs):
281281
response = method(self, REST_uri, **kwargs)
282282
post_message =\
283283
"RESPONSE::STATUS: %s Content-Type: %s Content-Encoding:"\
284-
" %s\nText: %r" % (response.status_code,
285-
response.headers.get('Content-Type', None),
286-
response.headers.get('Content-Encoding', None),
287-
response.text)
284+
" %s Text: %r" % (response.status_code,
285+
response.headers.get('Content-Type', None),
286+
response.headers.get('Content-Encoding', None),
287+
response.text)
288288
logger.debug(post_message)
289289
if response.status_code not in range(200, 207):
290-
error_message = '%s Unexpected Error: %s for uri: %s\nText: %r' %\
290+
error_message = '%s Unexpected Error: %s for uri: %s Text: %r' %\
291291
(response.status_code,
292292
response.reason,
293293
response.url,

0 commit comments

Comments
 (0)