fix(logging): Replace printStackTrace() with proper logging by hobostay · Pull Request #850 · APIJSON/APIJSON
Repository navigation
fix(logging): Replace printStackTrace() with proper logging - #850
Merged
TommyLemon merged 1 commit into APIJSON:master from hobostay:fix/logging-replace-printstacktrace Feb 18, 2026
Merged
fix(logging): Replace printStackTrace() with proper logging #850 TommyLemon merged 1 commit into APIJSON:master from hobostay:fix/logging-replace-printstacktrace
Conversation
hobostay commented Feb 17, 2026
Copy link Copy Markdown
Contributor
Summary
Replace all e.printStackTrace() calls with Log.e() to follow best practices for error handling and logging.
Changes
This PR replaces all instances of e.printStackTrace() with proper logging using the project's Log.e() method, providing:
- Consistent logging format with timestamps
- Better error tracking in production environments
- Controllable logging via
Log.DEBUGflag - More meaningful error messages with context
Files Modified
AbstractSQLExecutor.java: 9 replacements (ResultSet close, transaction errors, connection close)AbstractParser.java: 6 replacements (parse errors, transaction commit/rollback)JSONRequest.java: 1 replacement (JSON parse error)JSR223ScriptExecutor.java: 1 replacement (script compilation error)
Type
- Bug Fix (improves error handling and debugging)
- Feature
- Refactoring
- Documentation
Checklist
- Tests pass locally
- Follows project coding style
- Self-review completed
- Commit messages follow guidelines
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
fix(logging): Replace printStackTrace() with proper logging
92cbf66
Replace all e.printStackTrace() calls with Log.e() to follow best practices for error handling and logging. This provides: - Consistent logging format with timestamps - Better error tracking in production - Ability to control logging via Log.DEBUG flag - More meaningful error messages with context Changes: - AbstractSQLExecutor.java: 9 replacements - AbstractParser.java: 6 replacements - JSONRequest.java: 1 replacement - JSR223ScriptExecutor.java: 1 replacement Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>TommyLemon merged commit
696af70
into
APIJSON : master
Feb 18, 2026
1 check passed
TommyLemon commented Feb 18, 2026
Copy link Copy Markdown
Member
|
@hobostay |