You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by "archit-8 (via GitHub)" <gi...@apache.org> on 2024/01/16 16:40:15 UTC

[PR] [ISSUE #4733]Substitute e.printStackTrace() with log.error() (eventmesh)

archit-8 opened a new pull request, #4746:
URL: https://github.com/apache/eventmesh/pull/4746

   
   Modifications
   Replaced:  e.printStackTrace() with log.error() l
   
   Fixes #4733
   
   Documentation
   
   - Does this pull request introduce  a new feature?(no)
   


-- 
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: dev-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


Re: [PR] [ISSUE #4733]Substitute e.printStackTrace() with log.error() (eventmesh)

Posted by "archit-8 (via GitHub)" <gi...@apache.org>.
archit-8 commented on code in PR #4746:
URL: https://github.com/apache/eventmesh/pull/4746#discussion_r1453717565


##########
eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/client/impl/PubClientImpl.java:
##########
@@ -73,7 +73,7 @@ public void close() {
             task.cancel(false);
             super.close();
         } catch (Exception e) {
-            e.printStackTrace();
+            log.error("Error  occured during close operation",e);
         }

Review Comment:
   @Pil0tXia  sure    i will change to the format mentioned by you.



-- 
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: issues-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [PR] [ISSUE #4733]Substitute e.printStackTrace() with log.error() (eventmesh)

Posted by "archit-8 (via GitHub)" <gi...@apache.org>.
archit-8 closed pull request #4746: [ISSUE #4733]Substitute e.printStackTrace() with log.error()
URL: https://github.com/apache/eventmesh/pull/4746


-- 
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: dev-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


Re: [PR] [ISSUE #4733]Substitute e.printStackTrace() with log.error() (eventmesh)

Posted by "Pil0tXia (via GitHub)" <gi...@apache.org>.
Pil0tXia commented on code in PR #4746:
URL: https://github.com/apache/eventmesh/pull/4746#discussion_r1453712701


##########
eventmesh-runtime/src/test/java/org/apache/eventmesh/runtime/client/impl/PubClientImpl.java:
##########
@@ -73,7 +73,7 @@ public void close() {
             task.cancel(false);
             super.close();
         } catch (Exception e) {
-            e.printStackTrace();
+            log.error("Error  occured during close operation",e);
         }

Review Comment:
   Please refer to the format of the example I provided in the issue for recording the log:
   
   ![image](https://github.com/apache/eventmesh/assets/41445332/579c068b-a3bf-44b0-871a-dc5f52743201)
   
   Regarding the 4 pull requests you submitted for issue #4733, we will only merge one. Please consolidate the changes into a single pull request.



-- 
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: issues-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org