Revert "Fix the startup error log with FileUploadExecutorManager"#4502
Revert "Fix the startup error log with FileUploadExecutorManager"#4502madurangasiriwardena wants to merge 1 commit into4.12.xfrom
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| Servlet fileUploadServlet; | ||
| if (isLocalTransportMode) { | ||
| fileUploadServlet = new FileUploadServlet(context, serverConfigContext, webContext); | ||
| } else { | ||
| fileUploadServlet = new FileUploadServlet(context, clientConfigContext, webContext); | ||
| } |
There was a problem hiding this comment.
Log Improvement Suggestion No: 1
| Servlet fileUploadServlet; | |
| if (isLocalTransportMode) { | |
| fileUploadServlet = new FileUploadServlet(context, serverConfigContext, webContext); | |
| } else { | |
| fileUploadServlet = new FileUploadServlet(context, clientConfigContext, webContext); | |
| } | |
| Servlet fileUploadServlet; | |
| if (isLocalTransportMode) { | |
| log.debug("Creating FileUploadServlet with server configuration context for local transport mode"); | |
| fileUploadServlet = new FileUploadServlet(context, serverConfigContext, webContext); | |
| } else { | |
| log.debug("Creating FileUploadServlet with client configuration context"); | |
| fileUploadServlet = new FileUploadServlet(context, clientConfigContext, webContext); | |
| } |
| Dictionary<String, String> fileUploadServletProperties = new Hashtable<>(); | ||
| fileUploadServletProperties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_PATTERN, | ||
| "/carbon/fileupload/*"); |
There was a problem hiding this comment.
Log Improvement Suggestion No: 2
| Dictionary<String, String> fileUploadServletProperties = new Hashtable<>(); | |
| fileUploadServletProperties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_PATTERN, | |
| "/carbon/fileupload/*"); | |
| Dictionary<String, String> fileUploadServletProperties = new Hashtable<>(); | |
| fileUploadServletProperties.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_PATTERN, | |
| "/carbon/fileupload/*"); | |
| log.info("Registering FileUploadServlet with pattern: /carbon/fileupload/*"); |
| public void init(ServletConfig servletConfig) throws ServletException { | ||
| this.servletConfig = servletConfig; | ||
| try { |
There was a problem hiding this comment.
Log Improvement Suggestion No: 3
| public void init(ServletConfig servletConfig) throws ServletException { | |
| this.servletConfig = servletConfig; | |
| try { | |
| this.servletConfig = servletConfig; | |
| try { | |
| log.info("Initializing FileUploadServlet for web context: " + webContext); |
| //Registering FileUploadExecutor Manager as an OSGi service | ||
| bundleContext.registerService(FileUploadExecutorManager.class.getName(), fileUploadExecutorManager, null); |
There was a problem hiding this comment.
Log Improvement Suggestion No: 4
| //Registering FileUploadExecutor Manager as an OSGi service | |
| bundleContext.registerService(FileUploadExecutorManager.class.getName(), fileUploadExecutorManager, null); | |
| //Registering FileUploadExecutor Manager as an OSGi service | |
| bundleContext.registerService(FileUploadExecutorManager.class.getName(), fileUploadExecutorManager, null); | |
| log.debug("FileUploadExecutorManager registered as OSGi service successfully"); |
There was a problem hiding this comment.
AI Agent Log Improvement Checklist
- The log-related comments and suggestions in this review were generated by an AI tool to assist with identifying potential improvements. Purpose of reviewing the code for log improvements is to improve the troubleshooting capabilities of our products.
- Please make sure to manually review and validate all suggestions before applying any changes. Not every code suggestion would make sense or add value to our purpose. Therefore, you have the freedom to decide which of the suggestions are helpful.
✅ Before merging this pull request:
- Review all AI-generated comments for accuracy and relevance.
- Complete and verify the table below. We need your feedback to measure the accuracy of these suggestions and the value they add. If you are rejecting a certain code suggestion, please mention the reason briefly in the suggestion for us to capture it.
| Comment | Accepted (Y/N) | Reason |
|---|---|---|
| #### Log Improvement Suggestion No: 1 | ||
| #### Log Improvement Suggestion No: 2 | ||
| #### Log Improvement Suggestion No: 3 | ||
| #### Log Improvement Suggestion No: 4 |
Reverts #4495