@@ -145,20 +145,20 @@ def make(self) -> Optional[RPResponse]:
145
145
146
146
147
147
class ErrorPrintingHttpRequest (HttpRequest ):
148
- """This is specific request object which catches any request error and prints it to the "std.err ".
148
+ """This is specific request object which catches any request error and prints it to the "sys.stderr ".
149
149
150
150
The object is supposed to be used in logging methods only to prevent infinite recursion of logging, when logging
151
151
framework configured to log everything to ReportPortal. In this case if a request to ReportPortal fails, the
152
152
failure will be logged to ReportPortal once again and, for example, in case of endpoint configuration error, it
153
153
will also fail and will be logged again. So, the recursion will never end.
154
154
155
- This class is used to prevent this situation. It catches any request error and prints it to the "std.err ".
155
+ This class is used to prevent this situation. It catches any request error and prints it to the "sys.stderr ".
156
156
"""
157
157
158
158
def make (self ) -> Optional [RPResponse ]:
159
159
"""Make HTTP request to the ReportPortal API.
160
160
161
- The method catches any request error and prints it to the "std.err ".
161
+ The method catches any request error and prints it to the "sys.stderr ".
162
162
163
163
:return: wrapped HTTP response or None in case of failure
164
164
"""
@@ -223,20 +223,20 @@ async def make(self) -> Optional[AsyncRPResponse]:
223
223
224
224
225
225
class ErrorPrintingAsyncHttpRequest (AsyncHttpRequest ):
226
- """This is specific request object which catches any request error and prints it to the "std.err ".
226
+ """This is specific request object which catches any request error and prints it to the "sys.stderr ".
227
227
228
228
The object is supposed to be used in logging methods only to prevent infinite recursion of logging, when logging
229
229
framework configured to log everything to ReportPortal. In this case if a request to ReportPortal fails, the
230
230
failure will be logged to ReportPortal once again and, for example, in case of endpoint configuration error, it
231
231
will also fail and will be logged again. So, the recursion will never end.
232
232
233
- This class is used to prevent this situation. It catches any request error and prints it to the "std.err ".
233
+ This class is used to prevent this situation. It catches any request error and prints it to the "sys.stderr ".
234
234
"""
235
235
236
236
async def make (self ) -> Optional [AsyncRPResponse ]:
237
237
"""Asynchronously make HTTP request to the ReportPortal API.
238
238
239
- The method catches any request error and prints it to the "std.err ".
239
+ The method catches any request error and prints it to the "sys.stderr ".
240
240
241
241
:return: wrapped HTTP response or None in case of failure
242
242
"""
0 commit comments