Skip to content

refactor: migrate from deprecated common_system APIs#332

Merged
kcenon merged 3 commits into
mainfrom
feature/deprecation-migration-issue-331
Dec 22, 2025
Merged

refactor: migrate from deprecated common_system APIs#332
kcenon merged 3 commits into
mainfrom
feature/deprecation-migration-issue-331

Conversation

@kcenon

@kcenon kcenon commented Dec 22, 2025

Copy link
Copy Markdown
Owner

Summary

  • Remove deprecated THREAD_LOG_* macros from thread_logger.h that were defined but never used
  • Add deprecation warning suppression for legacy ILogger::log() method in logger_system_adapter.h
  • Update CHANGELOG documentation (English and Korean)

Details

This PR addresses the deprecation migration tracked in #331. The changes prepare thread_system for common_system v3.0.0 which will remove deprecated APIs.

THREAD_LOG_* Macros Removal

The following macros were removed from thread_logger.h:

  • THREAD_LOG_TRACE
  • THREAD_LOG_DEBUG
  • THREAD_LOG_INFO
  • THREAD_LOG_WARN
  • THREAD_LOG_ERROR

These macros were defined but never used in the codebase, and could cause confusion with the standard LOG_* macros from common_system.

Legacy Logger Method Handling

The log(level, message, file, line, function) method in logger_system_adapter.h is an override of a deprecated pure virtual function in ILogger interface. Since the base method is still required (pure virtual), we suppress deprecation warnings with appropriate pragmas. This implementation will be removed when common_system v3.0.0 removes the deprecated base method.

Test Plan

  • Build passes with -Wdeprecated-declarations flag
  • No deprecation warnings in thread_system code
  • Smoke tests pass
  • Existing functionality preserved

Closes #331

Remove deprecated THREAD_LOG_TRACE, THREAD_LOG_DEBUG, THREAD_LOG_INFO,
THREAD_LOG_WARN, and THREAD_LOG_ERROR macros from thread_logger.h.

These macros were defined but never used in the codebase. As part of
the common_system API migration (#331), removing these avoids any
potential confusion with the standard LOG_* macros.

Addresses #331
Add pragma directives to suppress deprecation warnings for the legacy
log(level, message, file, line, function) method implementation in
logger_system_adapter.

This method is required as it overrides a pure virtual function in
ILogger interface. The suppression is necessary during the migration
period until common_system v3.0.0 removes the deprecated method.

Documentation added clarifying removal timeline.

Addresses #331
Add entries for issue #331:
- Document removal of THREAD_LOG_* macros from thread_logger.h
- Document deprecation warning suppression in logger_system_adapter

Updated both English and Korean versions.

Addresses #331
@github-actions

Copy link
Copy Markdown
Contributor

📊 Performance Benchmark Results

Performance Benchmark Report

No benchmark data available.

ℹ️ No baseline reference available

This is the first benchmark run or baseline file is missing.

@kcenon kcenon merged commit 97fd88b into main Dec 22, 2025
26 checks passed
@kcenon kcenon deleted the feature/deprecation-migration-issue-331 branch February 22, 2026 02:02
kcenon added a commit that referenced this pull request Apr 13, 2026
* refactor(logger): remove unused THREAD_LOG_* macros

Remove deprecated THREAD_LOG_TRACE, THREAD_LOG_DEBUG, THREAD_LOG_INFO,
THREAD_LOG_WARN, and THREAD_LOG_ERROR macros from thread_logger.h.

These macros were defined but never used in the codebase. As part of
the common_system API migration (#331), removing these avoids any
potential confusion with the standard LOG_* macros.

Addresses #331

* refactor(adapter): add deprecation warning suppression for legacy API

Add pragma directives to suppress deprecation warnings for the legacy
log(level, message, file, line, function) method implementation in
logger_system_adapter.

This method is required as it overrides a pure virtual function in
ILogger interface. The suppression is necessary during the migration
period until common_system v3.0.0 removes the deprecated method.

Documentation added clarifying removal timeline.

Addresses #331

* docs: update CHANGELOG with deprecation migration changes

Add entries for issue #331:
- Document removal of THREAD_LOG_* macros from thread_logger.h
- Document deprecation warning suppression in logger_system_adapter

Updated both English and Korean versions.

Addresses #331
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.

deprecation: Migrate from deprecated common_system APIs before v0.3.0.0

1 participant