NetShrimp06 commented on PR #17797: URL: https://github.com/apache/doris/pull/17797#issuecomment-1469393647
> * How it works? > Aspectj is used to implement the aspect function of annotations. During compilation, the aspectj-maven-plugin plug-in will automatically weave the code added with aspect annotations into the generated classes file. > * When to use to? > When a method wants to add a try catch to save exception information, this annotation can be used to automatically capture the exception into the Log file, and the code can be more concise. > * What is the result when adding this annotation? > When an exception occurs in the method, the exception information will be recorded in the log file. If you want to print the stack information, you can set the isGetStackTrace parameter of the annotation to true (the default is false to not print the stack information). -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org