Skip to content

Removes emoji characters from all log messages across service classes to improve log readability and maintain professional appearance in production environments. - #35

Merged
Yoo-SH merged 2 commits into
developfrom
feature/log
Aug 21, 2025
Merged

Removes emoji characters from all log messages across service classes to improve log readability and maintain professional appearance in production environments.#35
Yoo-SH merged 2 commits into
developfrom
feature/log

Conversation

@Yoo-SH

@Yoo-SH Yoo-SH commented Aug 21, 2025

Copy link
Copy Markdown
Member

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test addition

Related Issues

N/A - Code cleanup improvement

Testing Instructions

  1. Run the application and check that all log messages appear without emoji characters
  2. Verify that log formatting remains consistent across all service classes
  3. Confirm that log parsing works correctly in production environments

Screenshots (if applicable)

N/A - Log message changes only

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Additional Notes

This PR is part of ongoing code cleanup efforts to improve maintainability and professional appearance. The changes affect the following service classes:

  • FileStorageService
  • ChunkingService
  • DocumentParsingService
  • EmbeddingService

All emoji characters have been removed while preserving the informative log message content and structure.

Yoo-SH added 2 commits August 22, 2025 01:27
- 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
@Yoo-SH Yoo-SH changed the title emoves emoji characters from all log messages across service classes to improve log readability and maintain professional appearance in production environments. Removes emoji characters from all log messages across service classes to improve log readability and maintain professional appearance in production environments. Aug 21, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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);

Copilot AI Aug 21, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.

Suggested change
log.debug(" [UPLOAD] Step 1/5: Validating file: {}", filename);
log.debug("[UPLOAD] Step 1/5: Validating file: {}", filename);

Copilot uses AI. Check for mistakes.

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",

Copilot AI Aug 21, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.

Suggested change
log.info(" [UPLOAD] File upload completed successfully: id={}, filename={}, duration={}ms",
log.info("[UPLOAD] File upload completed successfully: id={}, filename={}, duration={}ms",

Copilot uses AI. Check for mistakes.

minioClient.makeBucket(makeBucketArgs);
log.info("☁️ [MINIO] Created MinIO bucket: {}", minioConfig.getBucketName());
log.info(" [MINIO] Created MinIO bucket: {}", minioConfig.getBucketName());

Copilot AI Aug 21, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.

Suggested change
log.info(" [MINIO] Created MinIO bucket: {}", minioConfig.getBucketName());
log.info("[MINIO] Created MinIO bucket: {}", minioConfig.getBucketName());

Copilot uses AI. Check for mistakes.
@Transactional(readOnly = true)
public SourceDocument getDocument(UUID documentId) {
log.debug("📖 [QUERY] Retrieving document: id={}", documentId);
log.debug(" [QUERY] Retrieving document: id={}", documentId);

Copilot AI Aug 21, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.

Suggested change
log.debug(" [QUERY] Retrieving document: id={}", documentId);
log.debug("[QUERY] Retrieving document: id={}", documentId);

Copilot uses AI. Check for mistakes.
@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={}",

Copilot AI Aug 21, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.

Suggested change
log.debug(" [QUERY] Retrieving documents with pagination: page={}, size={}",
log.debug("[QUERY] Retrieving documents with pagination: page={}, size={}",

Copilot uses AI. Check for mistakes.
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);

Copilot AI Aug 21, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.

Suggested change
log.info(" [STATUS] Document status updated: id={}, status={}", documentId, status);
log.info("[STATUS] Document status updated: id={}, status={}", documentId, status);

Copilot uses AI. Check for mistakes.
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);

Copilot AI Aug 21, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.

Suggested change
log.info(" [STATUS] Document status updated to COMPLETED: id={}", documentId);
log.info("[STATUS] Document status updated to COMPLETED: id={}", documentId);

Copilot uses AI. Check for mistakes.
IngestionStatus status = document.getIngestionStatus();

log.info("📝 [DELETE] Document details: filename={}, status={}, size={} bytes",
log.info(" [DELETE] Document details: filename={}, status={}, size={} bytes",

Copilot AI Aug 21, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.

Suggested change
log.info(" [DELETE] Document details: filename={}, status={}, size={} bytes",
log.info("[DELETE] Document details: filename={}, status={}, size={} bytes",

Copilot uses AI. Check for mistakes.
// 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={}",

Copilot AI Aug 21, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The log message has an extra space at the beginning of the string, which should be removed for consistency with other log messages.

Suggested change
log.warn(" [DELETE] Cannot delete document in processing state: id={}, status={}",
log.warn("[DELETE] Cannot delete document in processing state: id={}, status={}",

Copilot uses AI. Check for mistakes.
Comment thread core/src/main/java/com/opencontext/service/FileStorageService.java
@Yoo-SH
Yoo-SH merged commit db1d5f8 into develop Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants