Jedore commented on code in PR #276:
URL: https://github.com/apache/skywalking-python/pull/276#discussion_r1097277078


##########
tests/plugin/data/sw_loguru/services/provider.py:
##########
@@ -24,21 +25,35 @@
 
     app = FastAPI()
 
+    logging_logger = logging.getLogger()
+
 
     @app.get('/users')
     async def application():
         time.sleep(0.5)
 
         try:
             raise Exception('Loguru Exception Test.')
-        except Exception:   # noqa
+        except Exception:  # noqa
             logger.opt(exception=True).error('Loguru provider error reported.')
+            time.sleep(0.5)
+            logging_logger.error('Logging provider error reported.', 
exc_info=True)
+
+        time.sleep(0.5)
 
+        # this will be filtered by SW_AGENT_LOG_REPORTER_LEVEL
         logger.debug('Loguru provider debug reported.')
 
+        time.sleep(0.5)
+
         logger.warning('Loguru provider warning reported.')
 
+        time.sleep(0.5)
+

Review Comment:
   > Can we remove these `time.sleep`?
   
   Of course. I referred other test file.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to