Skip to content

Commit 9ac792c

Browse files
author
frizzby
committed
Merge branch 'async_requests' of https://github.com/frizzby/agent-python-pytest into async_requests
2 parents f113ca4 + 70a4aab commit 9ac792c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pytest_reportportal/service.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ def start_launch(
6464
"tags": tags
6565
}
6666
logging.debug("ReportPortal - Start launch: "
67-
"request_body={0}".format(sl_pt))
67+
"request_body=%s", sl_pt)
6868
req_data = self.RP.start_launch(**sl_pt)
6969
logging.debug("ReportPortal - Launch started: "
70-
"response_body={0}".format(req_data))
70+
"response_body=%s", req_data)
7171

7272
def start_pytest_item(self, test_item=None):
7373
try:
@@ -114,9 +114,8 @@ def finish_launch(self, launch=None, status="rp_launch"):
114114

115115
def post_log(self, message, loglevel='INFO', attachment=None):
116116
if loglevel not in self._loglevels:
117-
logging.warning('Incorrect loglevel = {}. Force set to INFO. '
118-
'Avaliable levels: {}.'
119-
.format(loglevel, self._loglevels))
117+
logging.warning('Incorrect loglevel = %s. Force set to INFO. '
118+
'Avaliable levels: %s.', loglevel, self._loglevels)
120119
loglevel = 'INFO'
121120

122121
sl_rq = {

0 commit comments

Comments
 (0)