Removes emoji characters from all log messages across service classes to improve log readability and maintain professional appearance in production environments. - #35
Conversation
- Update JavaDoc comments in controllers and services - Translate Korean log messages to English for consistency
- Remove emoji characters from all log statements across service classes
There was a problem hiding this comment.
Pull Request Overview
This pull request removes emoji characters from all log messages across service classes to improve log readability and maintain professional appearance in production environments.
- Standardizes log messages by removing emojis like 📤, ✅, ❌, 🎉, 🔍, 💾, etc. from all service classes
- Converts Korean log messages to English for consistency
- Maintains all existing log structure and information content while improving readability
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| SearchService.java | Removed emojis from hybrid search log messages and converted Korean text to English |
| IndexingService.java | Cleaned up emojis from indexing operation logs while preserving debug information |
| FileStorageService.java | Removed emojis from file upload, download, and deletion logs |
| EmbeddingService.java | Standardized embedding generation logs by removing emoji characters |
| DocumentParsingService.java | Removed emojis from document parsing logs and simplified markdown processing |
| ContentRetrievalService.java | Cleaned up content retrieval and token processing log messages |
| ChunkingService.java | Removed emojis from chunking operation logs while maintaining detailed statistics |
| SourceController.java | Converted Korean error messages to English for consistency |
| SearchController.java | Converted Korean log messages to English |
| DocsSourceController.java | Updated API response messages from Korean to English |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
|
||
| // Validate file | ||
| log.debug("📋 [UPLOAD] Step 1/5: Validating file: {}", filename); | ||
| log.debug(" [UPLOAD] Step 1/5: Validating file: {}", filename); |
There was a problem hiding this comment.
The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.
| log.debug(" [UPLOAD] Step 1/5: Validating file: {}", filename); | |
| log.debug("[UPLOAD] Step 1/5: Validating file: {}", filename); |
|
|
||
| long duration = System.currentTimeMillis() - startTime; | ||
| log.info("🎉 [UPLOAD] File upload completed successfully: id={}, filename={}, duration={}ms", | ||
| log.info(" [UPLOAD] File upload completed successfully: id={}, filename={}, duration={}ms", |
There was a problem hiding this comment.
The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.
| log.info(" [UPLOAD] File upload completed successfully: id={}, filename={}, duration={}ms", | |
| log.info("[UPLOAD] File upload completed successfully: id={}, filename={}, duration={}ms", |
|
|
||
| minioClient.makeBucket(makeBucketArgs); | ||
| log.info("☁️ [MINIO] Created MinIO bucket: {}", minioConfig.getBucketName()); | ||
| log.info(" [MINIO] Created MinIO bucket: {}", minioConfig.getBucketName()); |
There was a problem hiding this comment.
The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.
| log.info(" [MINIO] Created MinIO bucket: {}", minioConfig.getBucketName()); | |
| log.info("[MINIO] Created MinIO bucket: {}", minioConfig.getBucketName()); |
| @Transactional(readOnly = true) | ||
| public SourceDocument getDocument(UUID documentId) { | ||
| log.debug("📖 [QUERY] Retrieving document: id={}", documentId); | ||
| log.debug(" [QUERY] Retrieving document: id={}", documentId); |
There was a problem hiding this comment.
The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.
| log.debug(" [QUERY] Retrieving document: id={}", documentId); | |
| log.debug("[QUERY] Retrieving document: id={}", documentId); |
| @Transactional(readOnly = true) | ||
| public Page<SourceDocumentDto> getAllDocuments(Pageable pageable) { | ||
| log.debug("📖 [QUERY] Retrieving documents with pagination: page={}, size={}", | ||
| log.debug(" [QUERY] Retrieving documents with pagination: page={}, size={}", |
There was a problem hiding this comment.
The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.
| log.debug(" [QUERY] Retrieving documents with pagination: page={}, size={}", | |
| log.debug("[QUERY] Retrieving documents with pagination: page={}, size={}", |
| document.updateIngestionStatus(status); | ||
| sourceDocumentRepository.save(document); | ||
| log.info("📝 [STATUS] Document status updated: id={}, status={}", documentId, status); | ||
| log.info(" [STATUS] Document status updated: id={}, status={}", documentId, status); |
There was a problem hiding this comment.
The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.
| log.info(" [STATUS] Document status updated: id={}, status={}", documentId, status); | |
| log.info("[STATUS] Document status updated: id={}, status={}", documentId, status); |
| document.updateIngestionStatus(IngestionStatus.COMPLETED); | ||
| sourceDocumentRepository.save(document); | ||
| log.info("🎉 [STATUS] Document status updated to COMPLETED: id={}", documentId); | ||
| log.info(" [STATUS] Document status updated to COMPLETED: id={}", documentId); |
There was a problem hiding this comment.
The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.
| log.info(" [STATUS] Document status updated to COMPLETED: id={}", documentId); | |
| log.info("[STATUS] Document status updated to COMPLETED: id={}", documentId); |
| IngestionStatus status = document.getIngestionStatus(); | ||
|
|
||
| log.info("📝 [DELETE] Document details: filename={}, status={}, size={} bytes", | ||
| log.info(" [DELETE] Document details: filename={}, status={}, size={} bytes", |
There was a problem hiding this comment.
The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.
| log.info(" [DELETE] Document details: filename={}, status={}, size={} bytes", | |
| log.info("[DELETE] Document details: filename={}, status={}, size={} bytes", |
| // Check if document is currently being processed (but allow DELETING status) | ||
| if (document.isProcessing() && status != IngestionStatus.DELETING) { | ||
| log.warn("⚠️ [DELETE] Cannot delete document in processing state: id={}, status={}", | ||
| log.warn(" [DELETE] Cannot delete document in processing state: id={}, status={}", |
There was a problem hiding this comment.
The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.
| log.warn(" [DELETE] Cannot delete document in processing state: id={}, status={}", | |
| log.warn("[DELETE] Cannot delete document in processing state: id={}, status={}", |
Summary of Changes
This PR removes emoji characters from all log messages across service classes to improve log readability and maintain professional appearance in production environments.
Type of Change
Related Issues
N/A - Code cleanup improvement
Testing Instructions
Screenshots (if applicable)
N/A - Log message changes only
Checklist
Additional Notes
This PR is part of ongoing code cleanup efforts to improve maintainability and professional appearance. The changes affect the following service classes:
All emoji characters have been removed while preserving the informative log message content and structure.