@@ -237,7 +237,7 @@ def start_launch(self,
237
237
timeout = self .http_timeout )
238
238
except (ValueError , KeyError , IOError ) as exc :
239
239
logger .warning ("Report Portal Start Launch request failed" ,
240
- exc_info = exc , stack_info = True )
240
+ exc_info = exc )
241
241
return
242
242
self .launch_id = _get_id (r )
243
243
logger .debug ("start_launch - ID: %s" , self .launch_id )
@@ -265,10 +265,8 @@ def finish_launch(self, end_time, status=None, attributes=None, **kwargs):
265
265
r = self .session .put (url , json = data , verify = self .verify_ssl ,
266
266
timeout = self .http_timeout )
267
267
except (ValueError , KeyError , IOError ) as exc :
268
- logger .warning (
269
- "Report Portal Finish Launch request failed" ,
270
- exc_info = exc , stack_info = True
271
- )
268
+ logger .warning ("Report Portal Finish Launch request failed" ,
269
+ exc_info = exc )
272
270
return
273
271
logger .debug ("finish_launch - ID: %s" , self .launch_id )
274
272
return _get_msg (r )
@@ -292,10 +290,8 @@ def get_launch_info(self, max_retries=5):
292
290
resp = self .session .get (url , verify = self .verify_ssl ,
293
291
timeout = self .http_timeout )
294
292
except (ValueError , KeyError , IOError ) as exc :
295
- logger .warning (
296
- "Report Portal Launch Info request failed" ,
297
- exc_info = exc , stack_info = True
298
- )
293
+ logger .warning ("Report Portal Launch Info request failed" ,
294
+ exc_info = exc )
299
295
continue
300
296
301
297
if resp .status_code == 200 :
@@ -385,10 +381,8 @@ def start_test_item(self,
385
381
r = self .session .post (url , json = data , verify = self .verify_ssl ,
386
382
timeout = self .http_timeout )
387
383
except (ValueError , KeyError , IOError ) as exc :
388
- logger .warning (
389
- "Report Portal Start Item request failed" ,
390
- exc_info = exc , stack_info = True
391
- )
384
+ logger .warning ("Report Portal Start Item request failed" ,
385
+ exc_info = exc )
392
386
return
393
387
394
388
item_id = _get_id (r )
@@ -413,10 +407,8 @@ def update_test_item(self, item_uuid, attributes=None, description=None):
413
407
r = self .session .put (url , json = data , verify = self .verify_ssl ,
414
408
timeout = self .http_timeout )
415
409
except (ValueError , KeyError , IOError ) as exc :
416
- logger .warning (
417
- "Report Portal Update Item request failed" ,
418
- exc_info = exc , stack_info = True
419
- )
410
+ logger .warning ("Report Portal Update Item request failed" ,
411
+ exc_info = exc )
420
412
return
421
413
logger .debug ("update_test_item - Item: %s" , item_id )
422
414
return _get_msg (r )
@@ -457,10 +449,8 @@ def finish_test_item(self,
457
449
try :
458
450
r = self .session .put (url , json = data , verify = self .verify_ssl )
459
451
except (ValueError , KeyError , IOError ) as exc :
460
- logger .warning (
461
- "Report Portal Finish Item request failed" ,
462
- exc_info = exc , stack_info = True
463
- )
452
+ logger .warning ("Report Portal Finish Item request failed" ,
453
+ exc_info = exc )
464
454
return
465
455
logger .debug ("finish_test_item - ID: %s" , item_id )
466
456
return _get_msg (r )
@@ -476,10 +466,8 @@ def get_item_id_by_uuid(self, uuid):
476
466
r = self .session .get (url , verify = self .verify_ssl ,
477
467
timeout = self .http_timeout )
478
468
except (ValueError , KeyError , IOError ) as exc :
479
- logger .warning (
480
- "Report Portal Item Details request failed" ,
481
- exc_info = exc , stack_info = True
482
- )
469
+ logger .warning ("Report Portal Item Details request failed" ,
470
+ exc_info = exc )
483
471
return
484
472
return _get_json (r )["id" ]
485
473
@@ -494,10 +482,8 @@ def get_project_settings(self):
494
482
r = self .session .get (url , json = {}, verify = self .verify_ssl ,
495
483
timeout = self .http_timeout )
496
484
except (ValueError , KeyError , IOError ) as exc :
497
- logger .warning (
498
- "Report Portal Project Settings request failed" ,
499
- exc_info = exc , stack_info = True
500
- )
485
+ logger .warning ("Report Portal Project Settings request failed" ,
486
+ exc_info = exc )
501
487
return
502
488
logger .debug ("settings" )
503
489
return _get_json (r )
@@ -586,5 +572,5 @@ def _log_batch(self, log_data, force=False):
586
572
logger .warning (
587
573
"Report Portal Batch Log request failed after %d attempts" ,
588
574
POST_LOGBATCH_RETRY_COUNT ,
589
- exc_info = exceptions [- 1 ], stack_info = True
575
+ exc_info = exceptions [- 1 ]
590
576
)
0 commit comments