Skip to content

fix(code-quality): Replace System.out.println with SLF4J, fix log string concatenation#8

Open
maheshkumargangula wants to merge 2 commits intodevelopfrom
fix/code-quality
Open

fix(code-quality): Replace System.out.println with SLF4J, fix log string concatenation#8
maheshkumargangula wants to merge 2 commits intodevelopfrom
fix/code-quality

Conversation

@maheshkumargangula
Copy link

PR Title

fix(code-quality): Replace System.out.println with SLF4J, fix log string concatenation

Base Branch

develop

Summary

  • 31 → 0 System.out.println: Replaced all production System.out.println calls in LMS service startup classes and controllers with appropriate SLF4J logger.info()/logger.debug() calls
  • Parameterized logging: Replaced string concatenation in log statements with SLF4J {} placeholder pattern — avoids string building when log level is disabled

Files Changed

  • modules/lms/service/app/modules/StartModule.java
  • modules/lms/service/app/modules/ApplicationStart.java
  • modules/lms/service/app/modules/ActorStartModule.java
  • modules/lms/service/app/controllers/collectionsummaryaggregate/CollectionSummaryAggregateController.java
  • modules/lms/course-mw/course-actors-common/.../CacheManagementActor.java
  • modules/lms/course-mw/course-actors-common/.../SearchTelemetryUtil.java
  • core/sunbird-es-utils/.../ElasticSearchRestHighImpl.java
  • modules/userorg/controller/.../RequestInterceptor.java

Implements Tasks

CQ-02, CQ-10

Test Plan

  • grep -rn "System.out.print" modules/ core/ --include="*.java" | grep -v "/test/" → 0 results
  • No regression in application startup or logging output
  • Build passes: mvn clean install -DskipTests

Claude Coordinator and others added 2 commits February 21, 2026 17:10
…ing concatenation

- Replace System.out.println in StartModule, ApplicationStart, ActorStartModule (CQ-02)
- Replace System.out.println in CollectionSummaryAggregateController (CQ-02)
- Replace System.out.println in CacheManagementActor (CQ-02)
- Fix parameterized logging in SearchTelemetryUtil, ElasticSearchRestHighImpl (CQ-10)
- Fix log string concatenation to use {} placeholders (CQ-10)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…S log literals

- ApplicationStart.java: remove duplicate LoggerUtil declaration in
  mockServiceSetup(), restore brace balance, fix log call to use
  parameterized format with e.getMessage()
- ElasticSearchRestHighImpl.java: fix 4 broken multi-line string literals
  in update(), getDataByIdentifier(), bulkInsert() and upsert() methods
  that would cause compilation errors; convert to single-line parameterized
  SLF4J format with {} placeholders

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

2 participants